body {
    background: white;
}

nav{
    border-bottom: 1px solid #EBEBEB; /* Add this line */
    margin: 0px !important;
    padding: 0px 30px !important;
}


/* AI Interviewer Page Styles */
.ai-interview-container {
    display: flex;
    height: calc(100vh - 120px)!important; /* Subtract navbar height (50px) + promo strip height (24px) */
    overflow: hidden;
    position: relative;
}

footer {
    display: none !important;
}

/* Simple modal (used for beta gating) */
.qp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.qp-modal-overlay.hidden {
    display: none;
}

.qp-modal {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    font-family: 'Avenir';
}

.qp-modal-header {
    padding: 18px 20px 10px 20px;
    border-bottom: 1px solid #EBEBEB;
}

.qp-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.qp-modal-body {
    padding: 14px 20px 0 20px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    white-space: pre-wrap;
}

.qp-modal-actions {
    padding: 16px 20px 18px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.qp-modal-btn {
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid transparent;
}

.qp-modal-btn.hidden {
    display: none;
}

.qp-modal-btn-primary {
    background: black;
    border-color: black;
    color: #fff;
}

.qp-modal-btn-primary:hover {
    filter: brightness(0.97);
}

.qp-modal-btn-secondary {
    background: #fff;
    border-color: #DADADA;
    color: #111;
}

.qp-modal-btn-secondary:hover {
    background: #F8F8F8;
}

/* Navbar styling specific to AI interviewer page */
body:has(.ai-interview-container) nav {
    width: calc(100% - 60px) !important;
}

body:has(.ai-interview-container) .nav-content {
    width: 100% !important;
    max-width: none !important;
}

/* Left Sidebar - Interviewer Selection */
.interviewer-sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #EBEBEB;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    overflow: hidden;
}

.interviewer-sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    color: #636363;
    white-space: nowrap;
}

.sidebar-toggle {
    background: #f5f5f5; /* Light grey when sidebar is expanded */
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #f5f5f5;
    color: #333;
}

/* Interview Type Toggle */
.interview-type-toggle {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    margin: 20px;
    margin-top: 10px;
}

.toggle-option {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.toggle-option.active {
    background: #FF8C00;
    color: white;
}

.toggle-option:hover:not(.active) {
    background: #e9ecef;
    color: #333;
}

.interviewer-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-top: 10px;
}

.interviewer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 9px rgba(215, 95, 0, 0.2);
}

.interviewer-card:hover {
    /* background: #e9ecef; */
    border: 2px solid #FFC98F;
}

.interviewer-card.selected {
    border: 2px solid #FFC98F;
    /* background: #FFEDD9; */
    /* background: linear-gradient(135deg, #FFD7BF, #FFEDD9); */
    /* border-color: #FF8C00; */
    /* background: #fff3e0; */
}

.interviewer-avatar-small {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.interviewer-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.interviewer-name-small {
    margin: 0 0 2px 4px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.interviewer-role-small {
    margin: 0 0 4px 4px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.company-badge {
    background: #FFF7F0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

.company-name {
    color: #FE8400;
}

.like-text {
    color: #666;
    font-weight: 200;
}

/* Main Interview Section */
.main-interview-section {
    flex: 1;
    padding: 40px;
    overflow: auto;
    background-color: white;
    /* background-color: #D2D2D2; */

    /* overflow: hidden; */
    display: flex;
    flex-direction: column;
    transition: filter 0.5s ease;
}

.main-interview-section.connected {
    /* filter: brightness(0.7); */
    /* background-color: #cecece !important; */
    /* background-color: #C6C6C6; */
    background-color: #D2D2D2;
}

/* Header Styles */
.interview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.header-left {
    text-align: center;
    flex: 1;
}

.header-right {
    position: absolute;
    right: 0;
    top: 0;
}

.attempts-badge {
    background: transparent;
    border: 1px solid var(--lightorange);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    display: none; /* Hidden by default, shown only for logged-in users with subscription */
}

.attempts-number {
    color: var(--lightorange, #FFE5D0);
    font-weight: bolder;
}

.attempts-text {
    color: #000;
    font-weight: 100;
}

.interview-title {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.interview-subtitle {
    font-size: 20px;
    color: #000;
    margin: 0;
    font-weight: 400;
}


.btn-icon {
    font-size: 18px;
    color: #666;
}

/* Interview Panels */
.interview-panels {
    display: flex;
    gap: 70px;
    margin-bottom: 40px;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: gap 0.5s ease;
}

.interview-panels.connected {
    gap: 10px !important;
}

.connecting-dots {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interview-panels.connecting .connecting-dots {
    opacity: 1;
}

.connecting-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: connectingPulse 1.4s infinite ease-in-out;
}

.connecting-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.connecting-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes connectingPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.interviewer-panel,
.user-panel {
    width: 35vh;
    height: 35vh;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 1;
    flex-basis: 35vh;
}

/* Left Panel - Interviewer */
.interviewer-panel {
    background: linear-gradient(135deg, #FFD7BF, #FFEDD9);
    box-shadow: 0 0 50px rgba(215, 95, 0, 0.25);
    border: 1px solid #FFC98F;

}

.interviewer-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.interviewer-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interviewer-name {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 15px 0px 0px 0px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-badge {
    background: #ff7a00;
    color: #fff;
    font-size: 1rem;
    border-radius: 5px;
    padding: 2px 5px;
}

.interviewer-role {
    font-size: 18px;
    color: #000;
    margin: 0;
    font-weight: 400;
}

/* Right Panel - User */
.user-panel {
    background: white;
    border: 1px solid #c0c0c0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.user-video-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #EBEBEB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: none;
}

.placeholder-text {
    font-size: 22px;
    color: #666;
    font-weight: 500;
}

.user-email {
    font-size: 18px;
    color: #000;
    margin: 0;
    font-weight: 400;
}

/* Bottom Controls */
.interview-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.call-timer {
    /* border: 1px solid #878787; */
    border-radius: 8px;
    background: white;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 400;
    color: #666;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.call-timer.timer-warning {
    background-color: rgba(255, 68, 68, 0.2); /* Seethrough red background */
    color: #c00000; /* Dark red text/numbers */
    border: 2px solid #c00000; /* Dark red border */
    animation: timerFlash 1s ease-in-out infinite;
}

@keyframes timerFlash {
    0%, 100% {
        background-color: rgba(255, 68, 68, 0.1); /* Seethrough red */
    }
    50% {
        background-color: rgba(255, 68, 68, 0.3); /* Slightly more opaque red */
    }
}

.connection-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    /* border: 2px solid #E5E5E5; */
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 200;
    color: #333;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dc3545; /* Red for disconnected */
    transition: background-color 0.3s ease;
}

.status-dot.connected {
    background: #28a745; /* Green for connected */
}

.analysing-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff7a00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

.call-btn {
    background: linear-gradient(135deg, #FFD7BF, #FFEDD9);
    border: 1px solid #FFC98F;
    font-family: 'Avenir';
    /* box-shadow: 0 0 50px rgba(215, 95, 0, 0.25); */
    color: #ff7a00;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);

}

.call-btn:hover {
    filter: brightness(0.97);
}

.call-btn:active {
    transform: translateY(0);
}

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

.call-btn.hidden {
    display: none;
}

.call-btn-text {
    white-space: nowrap;
}


/* Collapsed Sidebar Styles */
.interviewer-sidebar.collapsed .sidebar-header h3,
.interviewer-sidebar.collapsed .interviewer-info,
.interviewer-sidebar.collapsed .company-badge,
.interviewer-sidebar.collapsed .interviewer-list,
.interviewer-sidebar.collapsed .interview-type-toggle {
    display: none;
}

.interviewer-sidebar.collapsed .sidebar-header:first-child {
    position: absolute;
    left: 20px; /* 20px from left edge of ai-interview-container */
    top: 20px; /* 20px from top edge of ai-interview-container */
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    z-index: 1001;
}

.interviewer-sidebar.collapsed .sidebar-toggle {
    background: white; /* White when sidebar is collapsed */
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow for visibility */
}

.interviewer-sidebar.collapsed .interviewer-card {
    justify-content: center;
    padding: 12px;
}

.interviewer-sidebar.collapsed .interviewer-avatar-small {
    width: 40px;
    height: 40px;
}



/* Loading Spinner Styles */
.loading-container {
    position: fixed;
    top: 74px; /* Start below navbar (50px) + promo strip (24px) */
    left: 0;
    width: 100%;
    height: calc(100vh - 74px); /* Full height minus navbar (50px) + promo strip (24px) */
    background: rgba(255, 255, 255, 0.7); /* More transparent */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Lower z-index to not cover navbar */
    backdrop-filter: blur(2px); /* Add subtle blur effect */
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF8C00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

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

/* Responsive Design */
/* @media (max-width: 1200px) {
    .interviewer-panel,
    .user-panel {
        width: 18vh;
        height: 18vh;
        padding: 30px;
    }
} */

/* @media (max-width: 1000px) {
    .interviewer-panel,
    .user-panel {
        width: 16vh;
        height: 16vh;
        padding: 25px;
    }
} */

@media (max-width: 768px) {
    .ai-interview-container {
        flex-direction: column;
        height: auto;
    }
    
    .interviewer-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #E5E5E5;
    }
    
    .main-interview-section {
        padding: 20px;
    }
    
    .interview-panels {
        flex-direction: column;
        gap: 20px;
    }
    
    .interviewer-panel,
    .user-panel {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .interview-title {
        font-size: 36px;
    }
    
    .interview-subtitle {
        font-size: 18px;
    }
    
    .interview-controls {
        flex-direction: column;
        gap: 16px;
    }
    
    .call-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-interview-section {
        padding: 20px 10px;
    }
    
    .interview-title {
        font-size: 28px;
    }
    
    .interviewer-avatar,
    .user-video-placeholder {
        width: 100px;
        height: 100px;
    }
}
