/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container styles */
.container {
    width: 100%;
    max-width: 500px;
}

.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Form card styles */
.form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form header */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.form-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2em;
}

.form-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

/* Urgency badge for ads */
.urgency-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.form-header p {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Trust indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    color: #27ae60;
    font-weight: 500;
}

.trust-indicators span i {
    color: #27ae60;
}

/* Success and error messages */
.success-message, .error-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-message {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.redirect-notice {
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.9;
    font-style: italic;
}

.redirect-notice i {
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

.error-message {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.error-message i {
    margin-right: 8px;
}

/* Form styles */
.lead-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.9em;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
}

.checkbox-group a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Submit button */
.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Dashboard styles */
.dashboard-header {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1 {
    color: #2c3e50;
    margin: 0;
}

.dashboard-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Button styles */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #d5dbdb;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.8em;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-info h3 {
    font-size: 2em;
    margin-bottom: 5px;
    color: #2c3e50;
}

.stat-info p {
    color: #7f8c8d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Leads section */
.leads-section {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    padding: 30px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    color: #2c3e50;
    margin: 0;
}

.section-header h2 i {
    color: #667eea;
    margin-right: 10px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: #7f8c8d;
}

.search-box input {
    padding: 12px 15px 12px 45px;
    border: 2px solid #ecf0f1;
    border-radius: 25px;
    width: 300px;
    font-size: 0.9em;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

/* Table styles */
.leads-table-container {
    overflow-x: auto;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
}

.leads-table th,
.leads-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.leads-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8em;
}

.leads-table tr:hover {
    background: #f8f9fa;
}

.leads-table tr:last-child td {
    border-bottom: none;
}

/* Interest badges */
.interest-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.interest-product_updates {
    background: #e3f2fd;
    color: #1976d2;
}

.interest-early_access {
    background: #e8f5e8;
    color: #388e3c;
}

.interest-partnership {
    background: #fff3e0;
    color: #f57c00;
}

.interest-support {
    background: #fce4ec;
    color: #c2185b;
}

.interest-other {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Actions cell */
.actions-cell {
    white-space: nowrap;
}

.actions-cell .btn {
    margin-right: 5px;
}

/* No data state */
.no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px;
}

/* Alert styles */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .form-card {
        padding: 30px 20px;
    }

    .form-header h1 {
        font-size: 1.8em;
    }

    .urgency-badge {
        font-size: 0.8em;
        padding: 6px 12px;
    }

    .trust-indicators {
        gap: 15px;
    }

    .trust-indicators span {
        font-size: 0.8em;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .header-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-info h3 {
        font-size: 1.5em;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .search-box input {
        width: 100%;
    }

    .leads-table-container {
        margin: 0 -20px;
    }

    .leads-table th,
    .leads-table td {
        padding: 12px 8px;
        font-size: 0.9em;
    }

    .actions-cell {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .actions-cell .btn {
        margin-right: 0;
        margin-bottom: 0;
        padding: 6px 10px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 20px 15px;
    }

    .form-header h1 {
        font-size: 1.5em;
    }

    .form-header p {
        font-size: 1em;
    }

    .submit-btn {
        padding: 15px 20px;
        font-size: 1em;
    }

    .dashboard-header h1 {
        font-size: 1.5em;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }

    .stat-info h3 {
        font-size: 1.3em;
    }
}
