/* Deep Blue Air Interview Portal v2 - Professional Design */

:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --primary-50: #eff6ff;
    --success: #059669;
    --success-light: #10b981;
    --warning: #f59e0b;
    --danger: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
}

/* Loading Screen */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: var(--white);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container p {
    margin-top: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ==================== LANDING SCREEN - Customer Branded ==================== */
#landing-screen {
    background: linear-gradient(160deg, #0a0f1a 0%, #101829 40%, #162033 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Network Background */
.network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.landing-fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Test mode section */
.test-mode.hidden {
    display: none;
}

.test-mode {
    width: 100%;
    margin-top: 1.5rem;
}

.test-mode-description {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.test-mode .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.test-mode .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.test-mode .user-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 1rem;
}

.test-mode .user-list::-webkit-scrollbar {
    width: 6px;
}

.test-mode .user-list::-webkit-scrollbar-track {
    background: var(--surface);
}

.test-mode .user-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.test-mode .user-card {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.test-mode .user-card:last-child {
    border-bottom: none;
}

.test-mode .user-card:hover {
    background: rgba(59, 130, 246, 0.05);
}

.test-mode .user-card.selected {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--primary);
}

.test-mode .user-name {
    font-weight: 600;
    color: var(--foreground);
    font-size: 0.9rem;
}

.test-mode .user-meta {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.test-mode .no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
}

.test-mode .loading-text {
    padding: 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
}

/* Customer Logo (shown after login on intro/interview screens) */
.customer-logo {
    max-width: 380px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 60px rgba(59, 130, 246, 0.2));
    transition: all 0.3s ease;
}

.customer-logo:hover {
    filter: drop-shadow(0 4px 40px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 80px rgba(59, 130, 246, 0.3));
    transform: scale(1.02);
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2.25rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.5s ease-out;
}

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

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
}

.login-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.25rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.login-card:hover .login-logo {
    opacity: 1;
}

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.login-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 0.625rem 1rem;
    background: var(--gray-50);
    border-radius: 50px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.01em;
}

.badge svg {
    flex-shrink: 0;
    stroke: var(--gray-400);
}

.badge-divider {
    width: 1px;
    height: 14px;
    background: var(--gray-200);
}

.login-footer {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-top: 2.5rem;
    transition: color 0.2s;
}

.login-footer:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Microsoft SSO Button */
.btn-microsoft {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #1a1a1a;
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-microsoft:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-microsoft:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.microsoft-icon {
    width: 18px;
    height: 18px;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.8125rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.login-divider span {
    padding: 0 1rem;
}

.powered-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.75rem;
    margin-top: auto;
    padding-top: 2rem;
}

.onward-logo-small {
    height: 20px;
    width: auto;
    opacity: 0.8;
}

/* Resume Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Legacy support */
.landing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

.landing-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.hero-content {
    max-width: 480px;
    color: var(--white);
}

.hero-logo {
    max-width: 360px;
    height: auto;
    margin-bottom: 0.25rem;
}

.company-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.detail-icon {
    font-size: 1.25rem;
}

.landing-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--white);
}

.form-card {
    width: 100%;
    max-width: 400px;
}

.form-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-intro {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-select,
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    transition: all 0.2s;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.form-divider span {
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-large {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover:not(:disabled) {
    background: var(--success-light);
}

.btn-arrow {
    transition: transform 0.2s;
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-link {
    display: inline-block;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-top: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Resume Prompt */
.resume-prompt {
    text-align: center;
    padding: 1.5rem;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-light);
}

.resume-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.resume-prompt h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.resume-prompt p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.resume-actions {
    display: flex;
    gap: 0.75rem;
}

.resume-actions .btn {
    flex: 1;
}

/* ==================== INTRO SCREEN (Karaoke Text) ==================== */
#intro-screen {
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.intro-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 700px;
    min-height: 60vh;
    position: relative;
    z-index: 1;
}

/* Acknowledgment Section */
.acknowledgment-section {
    width: 100%;
    max-width: 500px;
}

.acknowledgment-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: var(--white);
}

.acknowledgment-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.acknowledgment-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.acknowledgment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.acknowledgment-list li {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.acknowledgment-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-light);
    font-weight: bold;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-light);
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9375rem;
    color: var(--white);
}

.intro-logo {
    margin-bottom: 1rem;
}

.dba-logo {
    height: 120px;
    width: auto;
}

.intro-text-container {
    text-align: center;
}

.intro-karaoke {
    font-size: 1.75rem;
    line-height: 2;
    color: var(--gray-500);
    font-weight: 400;
}

.intro-karaoke span {
    transition: all 0.15s ease;
    display: inline;
}

.intro-karaoke span.spoken {
    color: var(--white);
    font-weight: 600;
}

.intro-karaoke span.current {
    color: var(--primary-light);
    font-weight: 700;
}

.intro-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.audio-bar {
    width: 240px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 2px;
    overflow: hidden;
}

.audio-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-light);
    transition: width 0.1s linear;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--gray-500);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--white);
}

/* ==================== INTERVIEW SCREEN ==================== */
#interview-screen {
    flex-direction: column;
}

.interview-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.interview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-company {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.header-divider {
    color: var(--gray-300);
}

.header-title {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-user {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.progress-pill {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--primary-50);
    color: var(--primary);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.progress-sep {
    opacity: 0.5;
}

.interview-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    flex: 1;
}

.interview-sidebar {
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: 1.5rem;
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    flex: 1;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.powered-by {
    display: block;
    font-size: 0.6875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.onward-logo {
    height: 28px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.onward-logo:hover {
    opacity: 1;
}

.sidebar-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.question-nav {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.question-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: all 0.15s;
}

.question-nav-item:hover {
    background: var(--gray-50);
}

.question-nav-item.active {
    background: var(--primary);
    color: var(--white);
}

.question-nav-item.answered:not(.active) {
    color: var(--success);
}

.question-nav-item.answered::before {
    content: '✓';
    font-size: 0.75rem;
    font-weight: 700;
}

.interview-main {
    padding: 2rem 3rem;
    max-width: 800px;
}

.question-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.question-badge {
    background: var(--primary-50);
    color: var(--primary);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.btn-icon-small {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s;
}

.btn-icon-small:hover {
    background: var(--gray-200);
}

.question-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-900);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.response-area {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
}

.response-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.response-toolbar label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.btn-record {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-record:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-record.recording {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.mic-icon {
    font-size: 1rem;
}

.response-textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    resize: vertical;
    min-height: 180px;
    transition: border-color 0.2s;
}

.response-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.response-textarea::placeholder {
    color: var(--gray-400);
}

.transcription-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--primary-50);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--primary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.response-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.save-indicator {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.save-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.save-indicator.saving .save-dot {
    background: var(--warning);
}

.question-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.question-nav-buttons .btn {
    min-width: 140px;
}

/* ==================== COMPLETION SCREEN ==================== */
#completion-screen {
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 2rem;
}

.completion-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.completion-icon {
    margin-bottom: 1.5rem;
}

.completion-card h1 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.completion-subtitle {
    color: var(--gray-500);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.completion-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.summary-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.375rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.summary-divider {
    width: 1px;
    height: 50px;
    background: var(--gray-300);
}

.completion-next {
    text-align: left;
    padding: 1.5rem;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.completion-next h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.completion-next ul {
    margin: 0;
    padding-left: 1.25rem;
}

.completion-next li {
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.completion-thanks {
    color: var(--gray-600);
    font-style: italic;
}

/* ==================== ADMIN DASHBOARD ==================== */
#admin-screen {
    flex-direction: column;
}

.admin-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--gray-900);
    color: var(--white);
    border-bottom: 1px solid var(--gray-700);
}

.admin-header .header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-header .header-logo {
    height: 32px;
    width: auto;
}

.admin-header h1 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

.admin-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    flex: 1;
}

.admin-sidebar {
    background: var(--gray-800);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-nav {
    display: flex;
    flex-direction: column;
}

.admin-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.admin-nav .nav-item:hover {
    background: var(--gray-700);
    color: var(--white);
}

.admin-nav .nav-item.active {
    background: var(--gray-700);
    color: var(--white);
    border-left-color: var(--primary-light);
}

.nav-icon {
    font-size: 1.125rem;
}

.admin-main {
    padding: 2rem;
    background: var(--gray-50);
}

.admin-view {
    display: none;
}

.admin-view.active {
    display: block;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.view-filters {
    display: flex;
    gap: 1rem;
}

.view-filters .form-select {
    min-width: 160px;
    padding: 0.5rem 1rem;
}

.interviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.interview-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.15s;
}

.interview-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.interview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.interview-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 50px;
}

.status-badge.completed {
    background: var(--success);
    color: var(--white);
}

.status-badge.in-progress {
    background: var(--warning);
    color: var(--gray-900);
}

.interview-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.interview-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.interview-card-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 0.5rem;
}

.interview-card-actions .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

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

/* ==================== ADMIN CLIENTS VIEW - TWO PANEL ==================== */
.clients-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 180px);
    min-height: 500px;
}

.clients-list-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.panel-filters {
    display: flex;
    gap: 0.5rem;
}

.form-select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.clients-table {
    flex: 1;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.8125rem;
}

.client-row {
    cursor: pointer;
    transition: background-color 0.15s;
}

.client-row:hover {
    background: var(--gray-50);
}

.client-row.selected {
    background: #eff6ff;
    border-left: 3px solid var(--primary);
}

.client-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-row-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.client-row-name {
    font-weight: 500;
    color: var(--gray-900);
}

.user-stat {
    font-family: monospace;
    font-size: 0.75rem;
}

.user-stat .activated {
    font-weight: 600;
    color: var(--primary);
}

.user-stat .separator {
    color: var(--gray-400);
    margin: 0 2px;
}

.user-stat .total {
    color: var(--gray-500);
}

.status-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Client Detail Panel */
.client-detail-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow-y: auto;
}

.no-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: var(--gray-400);
}

.no-selection-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loading-detail,
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: var(--gray-500);
}

.error-message {
    color: #dc2626;
}

.client-detail {
    padding: 1.5rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.detail-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    padding: 0.25rem;
}

.detail-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.detail-industry {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.detail-project {
    margin-bottom: 1.5rem;
}

.project-type {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.stat-card .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* GDAP Status Section */
.gdap-section {
    margin-top: 1rem;
}

.gdap-status-card {
    padding: 1rem;
    border-radius: var(--radius-md);
}

.gdap-status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.gdap-icon {
    font-weight: 700;
    font-size: 1.25rem;
}

.gdap-status-text {
    font-weight: 600;
    color: var(--gray-900);
}

.gdap-details {
    margin-left: 1.75rem;
}

.gdap-detail {
    font-size: 0.8125rem;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.gdap-detail code {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.consent-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background-color 0.15s;
}

.consent-btn:hover {
    background: var(--primary-hover);
}

/* GDAP Action Buttons Container */
.gdap-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Retry GDAP Connection Button */
.btn-retry-gdap {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-retry-gdap:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
}

.btn-retry-gdap:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Reauthorize GDAP Button */
.btn-reauthorize-gdap {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-reauthorize-gdap:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
}

.btn-reauthorize-gdap:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.team-member-card {
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
}

.team-member-card .member-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.team-member-card .member-title {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.team-member-card .member-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Roles Accordion */
.roles-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.role-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    cursor: pointer;
    transition: background-color 0.15s;
}

.role-accordion-header:hover {
    background: var(--gray-100);
}

.role-accordion-header.expanded {
    background: var(--gray-100);
}

.role-accordion-header.expanded .accordion-icon {
    transform: rotate(180deg);
}

.role-info .role-name {
    font-weight: 600;
    color: var(--gray-900);
    display: block;
}

.role-info .role-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.accordion-icon {
    color: var(--gray-400);
    font-size: 0.75rem;
    transition: transform 0.15s;
}

.role-accordion-content {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.role-accordion-content .role-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0 0 0.75rem 0;
}

.role-accordion-content .focus-areas {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.question-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.question-num {
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
    width: 2rem;
}

.question-content {
    flex: 1;
}

.question-text {
    color: var(--gray-800);
    line-height: 1.4;
    font-size: 0.875rem;
}

.question-purpose {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    font-style: italic;
}

.domains-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.domain-badge {
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-family: monospace;
}

.no-data {
    text-align: center;
    color: var(--gray-500);
    padding: 1rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .clients-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .clients-list-panel {
        max-height: 300px;
    }
}

/* ==================== UTILITIES ==================== */
.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .landing-layout {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        padding: 3rem 2rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .interview-body {
        grid-template-columns: 1fr;
    }

    .interview-sidebar {
        display: none;
    }

    .interview-main {
        padding: 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .landing-hero {
        padding: 2rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .landing-form {
        padding: 2rem 1.5rem;
    }

    .intro-card,
    .completion-card,
    .question-card {
        padding: 1.5rem;
    }

    .question-text {
        font-size: 1.125rem;
    }

    .question-nav-buttons {
        flex-direction: column;
    }

    .question-nav-buttons .btn {
        width: 100%;
    }

    .completion-summary {
        flex-direction: column;
        gap: 1.5rem;
    }

    .summary-divider {
        width: 50px;
        height: 1px;
    }
}

/* ==================== ACCESS REQUEST SCREEN ==================== */
#access-request-screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    padding: 2rem;
}

.access-request-container {
    width: 100%;
    max-width: 560px;
}

.access-request-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.access-request-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.access-logo {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.access-request-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.access-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

.access-signout {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.75rem;
}

.access-signout a {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

.access-signout a:hover {
    opacity: 0.9;
}

.access-form {
    padding: 2rem;
}

.access-form .form-group {
    margin-bottom: 1.25rem;
}

.access-form label {
    display: block;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.access-form .form-input,
.access-form .form-textarea,
.access-form .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.access-form .form-input:focus,
.access-form .form-textarea:focus,
.access-form .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.access-form .form-input[readonly] {
    background: var(--muted-light, #f5f5f5);
    color: var(--muted);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-actions .btn {
    flex: 1;
}

.access-success {
    padding: 3rem 2rem;
    text-align: center;
}

.access-success .success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.access-success h2 {
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.access-success p {
    color: var(--muted);
    line-height: 1.6;
}

.access-success .request-id {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

/* Admin Access Requests Section */
.admin-requests-section {
    margin-top: 2rem;
}

.request-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}

.request-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.request-card-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.denied {
    background: #fee2e2;
    color: #991b1b;
}

.request-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.request-card-context {
    background: var(--surface);
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.request-card-actions {
    display: flex;
    gap: 0.5rem;
}

.request-card-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Admin Nav Badge */
.nav-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
}

.nav-badge.hidden {
    display: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.modal-lg {
    width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--foreground);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-group {
    margin-bottom: 1.25rem;
}

.modal-body label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

/* Button variants */
.btn-success {
    background: #10b981;
    color: white;
}

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

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

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

/* Requests grid */
.requests-grid {
    display: grid;
    gap: 1rem;
}

/* ==================== Client Enable/Disable Toggle ==================== */

.detail-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-sync {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-sync:hover {
    background: var(--primary-dark);
}

.btn-sync:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 24px;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: #10b981;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
}

/* GDAP Status Badges */
.status-gdap-active {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-gdap-inactive {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-disabled {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-left: 0.5rem;
}

/* ==================== Tenant Users Section ==================== */

.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header-with-action h4 {
    margin: 0;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    line-height: 1;
}

.btn-close:hover {
    color: var(--gray-700);
}

/* Action Buttons Group */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Onward Button (teal/green) */
.btn-onward {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-onward:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    transform: translateY(-1px);
}

.btn-onward.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content.modal-lg {
    max-width: 640px;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.search-box {
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.user-select-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all 0.15s;
}

.user-select-item:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.user-select-info {
    flex: 1;
    min-width: 0;
}

.user-select-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.125rem;
}

.user-select-detail {
    font-size: 0.8125rem;
    color: var(--gray-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-select-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.user-select-actions .role-select {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.modal-close:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

#manual-add-user-form {
    padding: 1.5rem;
}

#manual-add-user-form .form-group {
    margin-bottom: 1rem;
}

#manual-add-user-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

#manual-add-user-form input,
#manual-add-user-form select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#manual-add-user-form input:focus,
#manual-add-user-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

#manual-add-user-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.tenant-users-section {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

.tenant-users-search {
    margin-bottom: 1rem;
}

.tenant-users-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.tenant-users-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.tenant-users-list {
    max-height: 400px;
    overflow-y: auto;
}

.tenant-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.tenant-user-row.activated {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

.tenant-user-info {
    flex: 1;
}

.tenant-user-name {
    font-weight: 600;
    color: var(--gray-800);
}

.tenant-user-details {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.tenant-user-title {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.tenant-user-dept {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.tenant-user-dept::before {
    content: '·';
    margin-right: 0.5rem;
}

.tenant-user-email {
    color: var(--gray-500);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.tenant-user-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-select {
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    background: white;
}

.activated-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.btn-remove-user {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.team-member-card {
    position: relative;
}

.team-member-card:hover .btn-remove-user {
    opacity: 1;
}

.btn-remove-user:hover {
    color: var(--danger);
}

.loading-users {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

/* ==================== Completion Screen Enhancements ==================== */

.completion-audio {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.btn-audio-play {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-audio-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.btn-audio-play .play-icon {
    font-size: 1.25rem;
}

.completion-next {
    margin-top: 2rem;
    text-align: left;
}

.completion-next h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.next-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.next-step .step-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.next-step .step-content strong {
    display: block;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.next-step .step-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.completion-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.completion-footer p {
    margin: 0.5rem 0;
    color: var(--gray-600);
}

.completion-footer .footer-brand {
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
}

/* ==================== TEST INTERVIEW BUTTON ==================== */
.sidebar-divider {
    height: 1px;
    background: var(--gray-700);
    margin: 1.5rem 1rem;
}

.btn-test-interview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: calc(100% - 2rem);
    margin: 0 1rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-test-interview:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-test-interview .nav-icon {
    font-size: 1.125rem;
}

.btn-send-invitations {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: calc(100% - 2rem);
    margin: 0.75rem 1rem 0;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-send-invitations:hover {
    background: linear-gradient(135deg, #047857 0%, var(--success) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-send-invitations .nav-icon {
    font-size: 1.125rem;
}

/* ==================== ROLE PREVIEW ==================== */
.role-preview {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.role-preview h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.role-preview .preview-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0.5rem 0;
}

.role-preview .preview-content span {
    color: var(--gray-800);
}

/* ==================== MODAL DESCRIPTION ==================== */
.modal-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ==================== INVITATION MODAL ==================== */
.modal-lg {
    width: 90%;
    max-width: 640px;
}

.invitation-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.75rem;
}

.tab-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.15s;
}

.tab-btn:hover {
    color: var(--gray-700);
    background: var(--gray-50);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--primary-50);
    border-color: var(--primary-light);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* User checkbox list for project invitations */
.invite-users-list {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.invite-users-list h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.select-all-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.select-all-row .checkbox-label {
    font-weight: 500;
}

#invite-selected-count {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.users-checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.user-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    transition: background 0.15s;
}

.user-checkbox-item:hover {
    background: var(--gray-100);
}

.user-info {
    display: flex;
    flex-direction: column;
    margin-left: 0.5rem;
}

.user-info .name {
    font-weight: 500;
    color: var(--gray-800);
}

.user-info .role {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* User details card for single invitation */
.user-details-card {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
}

.user-details-card .user-detail {
    display: flex;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.user-details-card .user-detail strong {
    color: var(--primary-dark);
    min-width: 60px;
}

/* Email preview section */
.email-preview-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.email-preview-section h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.preview-toggle {
    margin-bottom: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.email-preview {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.email-preview iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* Send button icon */
.btn-icon {
    margin-right: 0.5rem;
}

/* Invitation status badges */
.invitation-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.invitation-status.pending {
    background: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.invitation-status.sent {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.invitation-status.failed {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}
