/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* POWER ORANGE Brand Identity */
    --primary-accent: #F86A0E;
    --primary-accent-hover: #e05f0c;
    --primary-navy: #313C59;
    --accent-blue: #2E5CD5;
    --accent-teal: #00C0B4;
    --primary-color: #F86A0E;
    --primary-hover: #e05f0c;
    --secondary-color: #313C59;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #313C59;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #00C0B4;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bot-bubble: #f1f5f9;
    --user-bubble: #F86A0E;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --hover-bg: #f1f5f9;
}

body {
    font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

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

.logo.logo-center {
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.ai-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary-accent);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.position-badge {
    background: var(--bot-bubble);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Phase Indicator */
.phase-container {
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
}

.phase-indicator {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto;
}

.phase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.phase-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10px;
    left: calc(50% + 15px);
    width: calc(100% - 30px);
    height: 2px;
    background: var(--border-color);
}

.phase-item.completed:not(:last-child)::after {
    background: var(--success-color);
}

.phase-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border-color);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.phase-item.active .phase-dot {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(248, 106, 14, 0.2);
}

.phase-item.completed .phase-dot {
    background: var(--success-color);
}

.phase-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.phase-item.active .phase-label {
    color: var(--primary-color);
    font-weight: 600;
}

.phase-item.completed .phase-label {
    color: var(--success-color);
}

/* Chat Container */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Welcome Screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    min-height: 60vh;
}

.welcome-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.welcome-screen h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.welcome-screen > p {
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.ai-info-card {
    display: flex;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(248, 106, 14, 0.08), rgba(46, 92, 213, 0.08));
    border: 1px solid rgba(248, 106, 14, 0.2);
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: left;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.ai-info-icon {
    color: var(--primary-accent);
    flex-shrink: 0;
}

.ai-info-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-navy);
}

.ai-info-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.human-option-card {
    display: flex;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: left;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.human-option-icon {
    color: #16a34a;
    flex-shrink: 0;
}

.human-option-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #15803d;
}

.human-option-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.human-option-content a {
    color: var(--accent-teal);
    text-decoration: underline;
    font-weight: 500;
}

.human-option-content a:hover {
    color: var(--primary-navy);
}

.welcome-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.welcome-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.welcome-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
}

/* Chat Messages */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
    /* No overflow here - let chat-container handle scrolling */
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

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

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.bot .message-avatar {
    background: var(--primary-accent);
    color: white;
}

.user .message-avatar {
    background: var(--bot-bubble);
    color: var(--text-secondary);
}

.message-bubble {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    line-height: 1.5;
}

.bot .message-bubble {
    background: var(--bot-bubble);
    color: var(--text-primary);
    border-bottom-left-radius: var(--radius-sm);
}

.user .message-bubble {
    background: var(--user-bubble);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.875rem 1rem;
    background: var(--bot-bubble);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-sm);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Completion Screen */
.completion-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    min-height: 60vh;
    justify-content: center;
}

.completion-icon {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.completion-screen h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.completion-screen > p {
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 2rem;
}

.next-steps {
    background: var(--bot-bubble);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: left;
    max-width: 400px;
    width: 100%;
}

.next-steps h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.next-steps ul {
    list-style: none;
}

.next-steps li {
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.next-steps li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Input Area */
.input-container {
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
}

.input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

#responseInput {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    min-height: 48px;
    max-height: 150px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#responseInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(248, 106, 14, 0.15);
}

#responseInput::placeholder {
    color: var(--text-secondary);
}

.input-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--bot-bubble);
    border-color: var(--text-secondary);
}

.btn-send {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

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

.btn-send:active {
    transform: scale(0.95);
}

.btn-send:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

/* Error Toast */
.error-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--error-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.error-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* =========================================
   ADMIN STYLES
   ========================================= */

.admin-body {
    background: #f1f5f9;
}

.admin-container {
    min-height: 100vh;
}

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

.admin-badge {
    background: var(--text-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bot-bubble);
}

.nav-link.logout {
    color: var(--error-color);
}

.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-page-header {
    margin-bottom: 2rem;
}

.admin-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-page-header p {
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card.stat-green .stat-value { color: var(--success-color); }
.stat-card.stat-yellow .stat-value { color: var(--warning-color); }
.stat-card.stat-red .stat-value { color: var(--error-color); }

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

/* Table */
.table-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.table-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

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

.data-table th, .data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bot-bubble);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(248, 106, 14, 0.04);
}

.candidate-name {
    font-weight: 600;
}

.score-badge {
    background: var(--bot-bubble);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

.recommendation-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.rec-strong_yes { background: #dcfce7; color: #166534; }
.rec-yes { background: #dbeafe; color: #1e40af; }
.rec-maybe { background: #fef3c7; color: #92400e; }
.rec-no { background: #fee2e2; color: #991b1b; }

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

.btn-action {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: var(--surface);
}

.btn-action:hover {
    background: var(--bot-bubble);
}

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

.btn-followup:hover {
    background: rgba(248, 106, 14, 0.1);
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Admin Login */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-login-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.admin-login-card h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(248, 106, 14, 0.15);
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.back-link:hover {
    color: var(--primary-accent);
}

/* Evaluation Page */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.evaluation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.candidate-info h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.candidate-email {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.interview-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.evaluation-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bot-bubble);
}

.score-circle.rec-strong_yes { background: #dcfce7; }
.score-circle.rec-yes { background: #dbeafe; }
.score-circle.rec-maybe { background: #fef3c7; }
.score-circle.rec-no { background: #fee2e2; }

.score-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.score-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.action-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
}

.card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-green { color: var(--success-color); }
.icon-yellow { color: var(--warning-color); }

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.summary-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

.strength-list li, .concern-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

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

.concern-list li::before {
    content: "!";
    position: absolute;
    left: 0;
    color: var(--warning-color);
    font-weight: bold;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: var(--bot-bubble);
    padding: 1rem;
    border-radius: var(--radius-md);
}

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

.skill-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
}

.skill-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-num {
    font-weight: 700;
    font-size: 1.125rem;
}

.followup-flag {
    background: var(--warning-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
}

.skill-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.skill-confidence {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.skill-evidence, .skill-concerns {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.skill-evidence strong, .skill-concerns strong {
    display: block;
    margin-bottom: 0.25rem;
}

.skill-evidence ul, .skill-concerns ul {
    margin: 0;
    padding-left: 1rem;
}

.skill-concerns {
    color: var(--warning-color);
}

.followup-questions {
    padding-left: 1.5rem;
}

.followup-questions li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* Transcript */
.transcript {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.transcript-turn {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.transcript-turn:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.turn-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.transcript-turn.assistant .turn-label {
    color: var(--primary-accent);
}

.turn-content {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Follow-up Interview Layout */
.followup-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.followup-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.followup-sidebar {
    width: 320px;
    background: var(--surface);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 1.5rem;
}

.sidebar-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h2 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.sidebar-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-mini {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.focus-areas, .suggested-questions {
    padding-left: 1rem;
}

.focus-areas li, .suggested-questions li {
    padding: 0.375rem 0;
    font-size: 0.9375rem;
}

.question-item {
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.5rem;
    margin: 0.25rem -0.5rem;
    border-radius: var(--radius-sm);
}

.question-item:hover {
    background: var(--bot-bubble);
    color: var(--primary-color);
}

.mini-list {
    list-style: none;
}

.mini-list li {
    padding: 0.375rem 0;
    padding-left: 1rem;
    position: relative;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mini-list.strengths li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
}

.mini-list.concerns li::before {
    content: "!";
    position: absolute;
    left: 0;
    color: var(--warning-color);
}

.followup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.followup-start {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.start-content {
    text-align: center;
    max-width: 500px;
}

.start-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.start-content > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.start-info {
    text-align: left;
    background: var(--bot-bubble);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.start-info h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.start-info ul {
    padding-left: 1.25rem;
}

.start-info li {
    padding: 0.375rem 0;
    color: var(--text-secondary);
}

.followup-chat {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.followup-chat .message-content {
    display: flex;
    flex-direction: column;
}

.followup-chat .message-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.followup-input {
    border-top: 1px solid var(--border-color);
    background: var(--surface);
}

/* =============================================================================
   PRIVACY & CONSENT
============================================================================= */

.privacy-section {
    max-width: 400px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.privacy-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.privacy-info svg {
    color: #16a34a;
}

.privacy-details {
    margin-bottom: 1rem;
}

.privacy-details summary {
    cursor: pointer;
    color: var(--primary-accent);
    font-size: 0.875rem;
    font-weight: 500;
}

.privacy-details summary:hover {
    text-decoration: underline;
}

.privacy-content {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.privacy-content p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.privacy-content p:last-child {
    margin-bottom: 0;
}

.privacy-content strong {
    color: var(--text-primary);
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(248, 106, 14, 0.06);
    border: 1px solid rgba(248, 106, 14, 0.2);
    border-radius: var(--radius-md);
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-accent);
}

.consent-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* =============================================================================
   PROGRESS BAR
============================================================================= */

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* =============================================================================
   SESSION CONTROLS
============================================================================= */

.session-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

/* =============================================================================
   MODALS
============================================================================= */

.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;
    backdrop-filter: blur(4px);
}

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

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeout-warning {
    color: #dc2626;
    font-weight: 500;
    padding: 0.75rem;
    background: #fef2f2;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* =============================================================================
   FEEDBACK SECTION
============================================================================= */

/* =============================================================================
   EMAIL CONFIRMATION
============================================================================= */

.email-confirmation {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    max-width: 400px;
}

.email-confirmation-icon {
    color: #16a34a;
    flex-shrink: 0;
}

.email-confirmation-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.email-confirmation-content p:first-child {
    color: #15803d;
    margin-bottom: 0.25rem;
}

.email-address {
    color: var(--text-primary) !important;
    font-weight: 500;
    word-break: break-all;
}

/* =============================================================================
   FEEDBACK SECTION
============================================================================= */

.feedback-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.feedback-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feedback-section > p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.feedback-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.feedback-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

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

.feedback-btn.selected {
    border-color: var(--primary-accent);
    background: rgba(248, 106, 14, 0.1);
    color: var(--primary-accent);
}

.feedback-btn[data-rating="positive"]:hover,
.feedback-btn[data-rating="positive"].selected {
    border-color: #16a34a;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.1);
}

.feedback-btn[data-rating="negative"]:hover,
.feedback-btn[data-rating="negative"].selected {
    border-color: #dc2626;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.feedback-btn span {
    font-size: 0.8125rem;
    font-weight: 500;
}

.feedback-comment {
    max-width: 400px;
    margin: 0 auto;
}

.feedback-comment textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    resize: none;
    margin-bottom: 0.75rem;
}

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

.btn-secondary {
    padding: 0.625rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.feedback-thanks {
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-md);
    color: #16a34a;
    font-weight: 500;
}

/* =============================================================================
   RESPONSIVE
============================================================================= */

/* Responsive */
@media (max-width: 900px) {
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .followup-container {
        flex-direction: column;
    }
    
    .followup-sidebar {
        width: 100%;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 640px) {
    .container {
        max-width: 100%;
    }

    .header {
        padding: 0.875rem 1rem;
    }
    
    .header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .position-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .chat-container {
        padding: 1rem;
    }

    .message {
        max-width: 90%;
    }

    .welcome-screen {
        padding: 1rem;
    }

    .welcome-screen h1 {
        font-size: 1.5rem;
    }

    .input-container {
        padding: 0.875rem 1rem;
    }
    
    .admin-main {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-bar {
        flex-direction: column;
    }
    
    .action-bar .btn-primary,
    .action-bar .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .evaluation-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .evaluation-score {
        align-items: flex-start;
    }
}
