/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a2e44;
    --gold: #c5a05c;
    --cream: #f5f1e8;
    --white: #ffffff;
    --gray-light: #e5e7eb;
    --gray-medium: #6b7280;
    --gray-dark: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, #e8dcc8 100%);
    color: var(--navy);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin-bottom: 20px;
}

.logo-container {
    flex: 1;
}

.logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-bottom: 60px;
    font-weight: 400;
}

/* Voice Section */
.voice-section {
    margin: 60px 0;
}

.voice-options-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 700px;
}

.custom-mic-wrapper {
    flex: 0 0 auto;
    display: none;
}

/* Custom Microphone Button */
.custom-mic-button {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, #2a4560 100%);
    border: 4px solid var(--gold);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.custom-mic-button:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #2a4560 0%, var(--navy) 100%);
}

.custom-mic-button:active {
    transform: scale(0.98);
}

.custom-mic-button .mic-icon {
    width: 60px;
    height: 60px;
    stroke: var(--gold);
}

.custom-mic-button .mic-text {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    max-width: 140px;
    line-height: 1.3;
}

#elevenlabs-widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

/* Style the ElevenLabs widget */
elevenlabs-convai {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

.voice-instruction {
    font-size: 1.125rem;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 10px;
}

.voice-powered {
    font-size: 0.875rem;
    color: var(--gray-medium);
    font-style: italic;
}

/* Divider */
.divider {
    margin: 50px 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-light);
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: var(--cream);
    color: var(--gray-medium);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Text Option Button */
.text-option-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.text-option-button:hover {
    background: var(--navy);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.text-option-button .icon {
    width: 20px;
    height: 20px;
}

/* Form Modal */
.form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 46, 68, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
}

.form-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    max-width: 700px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: var(--navy);
}

.close-button:hover svg {
    stroke: var(--gold);
}

.close-button svg {
    width: 20px;
    height: 20px;
    stroke: var(--navy);
    transition: stroke 0.3s ease;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 1rem;
    color: var(--gray-medium);
    margin-bottom: 30px;
}

/* Form Styles */
.career-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
}

.form-select,
.form-input,
.form-textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--navy);
    transition: all 0.3s ease;
    background: var(--white);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 92, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--gray-medium);
    margin-top: 4px;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--navy);
    color: var(--gold);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
}

.submit-button:hover {
    background: #2a4560;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button .icon {
    width: 20px;
    height: 20px;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--navy) 0%, #2a4560 100%);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.step-description {
    font-size: 1rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--gray-light);
    margin-top: 40px;
}

.footer-text {
    font-size: 1.125rem;
    color: #8b2332;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--navy);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    text-align: center;
    color: var(--gray-medium);
    margin-top: 10px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 500;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.card h2 {
    margin-bottom: 20px;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.match-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.match-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

th {
    background: var(--navy);
    color: var(--gold);
    font-weight: 600;
}

tr:hover {
    background: var(--cream);
}

/* Charts */
.chart-container {
    position: relative;
    height: 400px;
    margin: 30px 0;
}

/* Admin Hero */
.admin-hero {
    text-align: center;
    padding: 40px 0 30px;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.admin-subtitle {
    font-size: 1.125rem;
    color: var(--gray-dark);
    font-weight: 400;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--navy);
}

.stat-card-warning::before {
    background: linear-gradient(90deg, #ff9800, #f57c00);
}

.stat-card-info::before {
    background: linear-gradient(90deg, #0066b2, #004a87);
}

.stat-card-success::before {
    background: linear-gradient(90deg, #28a745, #218838);
}

.stat-card-active::before {
    background: linear-gradient(90deg, #c5a05c, #b08d4a);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-medium);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.empty-state p {
    color: var(--gray-medium);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--navy);
    color: var(--gold);
}

.btn-primary:hover {
    background: #2a4560;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: var(--gray-medium);
    color: white;
}

.btn-secondary:hover {
    background: var(--gray-dark);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .logo {
        height: 80px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .voice-button {
        width: 120px;
        height: 120px;
    }

    .microphone-icon {
        width: 50px;
        height: 50px;
    }

    .form-modal-content {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .matches-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo {
        height: 60px;
    }
}
