/* TEC Review Dashboard - Main Styles */

:root {
    /* TEC Brand Colors */
    --primary-blue: #0031da;
    --primary-blue-dark: #0025a8;
    --primary-blue-light: #e6ebff;

    /* Score Colors */
    --score-exceptional: #0031da;
    --score-excellent: #385de1da;
    --score-meeting: #138b21;
    --score-improvement: #f59e0b;
    --score-concern: #dc2626;

    /* Neutrals */
    --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;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-50);
    min-height: 100vh;
}

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

a:hover {
    text-decoration: underline;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--gray-900);
}

h1 {
    font-size: 1.875rem;
}
h2 {
    font-size: 1.5rem;
}
h3 {
    font-size: 1.25rem;
}
h4 {
    font-size: 1.125rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.page {
    padding: var(--space-xl) 0;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav a {
    color: var(--gray-600);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.nav a:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    text-decoration: none;
}

.nav a.active {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

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

.btn-logout {
    background: none;
    border: 1px solid var(--gray-300);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

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

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.card-header-flex .card-title {
    margin: 0;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

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

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

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

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

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

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

.btn-light-blue {
    background: var(--primary-blue-light);
    border: 1px solid #c7d2fe;
    color: var(--primary-blue);
}

.btn-light-blue:hover {
    background: #dbeafe;
    border-color: var(--primary-blue);
}

.btn-group {
    display: flex;
    gap: var(--space-xs);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

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

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

th {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--gray-50);
}

tr:hover td {
    background: var(--gray-50);
}

/* Score badges */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    gap: 0.25rem;
}

/* Perfect score warning indicator (inline in badge) */
.perfect-score-warning {
    font-size: 0.75rem;
    cursor: help;
    margin-left: 2px;
}

/* Perfect score warning note (below score ring) */
.perfect-score-warning-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: #92400e;
}

.perfect-score-warning-note .warning-icon {
    font-size: 0.875rem;
}

.perfect-score-warning-note .warning-text {
    font-weight: 500;
}

.score-exceptional {
    background: #e0e7ff;
    color: var(--score-exceptional);
}

.score-great {
    background: #dbeafe;
    color: var(--score-excellent);
}

.score-good {
    background: #dcfce7;
    color: var(--score-meeting);
}

.score-improvement {
    background: #fef3c7;
    color: var(--score-improvement);
}

.score-concern {
    background: #fee2e2;
    color: var(--score-concern);
}

/* Remove background from score classes when inside stat-value */
.stat-value.score-exceptional,
.stat-value.score-great,
.stat-value.score-good,
.stat-value.score-improvement,
.stat-value.score-concern {
    background: transparent;
}

/* Progress bars */
.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Stats cards */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: var(--space-sm);
}

/* Employee card */
.employee-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
    cursor: pointer;
}

.employee-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.employee-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.employee-manager {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.employee-scores {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

/* Review section */
.review-section {
    margin-bottom: var(--space-xl);
}

.review-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

/* Score comparison */
.score-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.score-column {
    text-align: center;
}

.score-column-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

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

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

/* Enhanced Score Summary */
.score-summary-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.overall-score-display {
    text-align: center;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-xl);
}

.overall-score-ring {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-lg);
}

.overall-score-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.overall-score-ring .ring-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 12;
}

.overall-score-ring .ring-progress {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease-out;
}

.overall-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.overall-score-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.overall-score-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

.overall-score-interpretation {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: var(--space-sm);
}

/* Category Score Cards */
.category-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.category-score-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.category-score-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.category-score-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--gray-800);
}

.category-score-avg {
    font-size: 1.5rem;
    font-weight: 700;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
}

.score-bars-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.score-bar-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.score-bar-label {
    width: 70px;
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 500;
}

.score-bar-track {
    flex: 1;
    height: 24px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.score-bar-fill {
    height: 100%;
    border-radius: var(--radius-md);
    transition: width 0.6s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--space-sm);
    min-width: fit-content;
}

.score-bar-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.score-bar-value-outside {
    margin-left: var(--space-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* Score gap indicator */
.category-gap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--gray-200);
    font-size: 0.8125rem;
}

.category-gap-icon {
    width: 20px;
    height: 20px;
    margin-right: var(--space-sm);
}

.gap-aligned {
    color: var(--gray-500);
}

.gap-concern {
    color: #dc2626;
}

.gap-positive {
    color: #059669;
}

/* Inline Score Legend */
.score-legend-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.legend-inline-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: var(--gray-600);
}

.legend-inline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-inline-range {
    font-weight: 600;
    color: var(--gray-800);
}

/* Question row */
.question-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
}

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

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

.question-score {
    min-width: 3rem;
    text-align: center;
}

.gap-indicator {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.gap-positive {
    background: #dcfce7;
    color: var(--score-exceptional);
}

.gap-negative {
    background: #fee2e2;
    color: var(--score-concern);
}

/* Comments section */
.comments-box {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

.comment-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.comment-text {
    color: var(--gray-700);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* AI Insights */
.ai-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.ai-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.ai-badge {
    background: var(--primary-blue);
    color: white;
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.ai-content {
    line-height: 1.7;
    color: var(--gray-700);
}

.ai-disclaimer {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: var(--space-md);
    font-style: italic;
}

/* Loading state */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

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

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

/* Alert/Toast */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.alert-error {
    background: #fee2e2;
    color: var(--score-concern);
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: var(--score-exceptional);
    border: 1px solid #bbf7d0;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
}

.login-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.login-logo img {
    height: 60px;
    margin-bottom: var(--space-md);
}

.login-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--gray-800);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-lg);
}

.tab {
    padding: var(--space-md) var(--space-lg);
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

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

.tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
}

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

/* Utility classes */
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-sm {
    font-size: 0.875rem;
}
.text-xs {
    font-size: 0.75rem;
}
.text-muted {
    color: var(--gray-500);
}
.font-bold {
    font-weight: 700;
}
.mt-sm {
    margin-top: var(--space-sm);
}
.mt-md {
    margin-top: var(--space-md);
}
.mt-lg {
    margin-top: var(--space-lg);
}
.mb-sm {
    margin-bottom: var(--space-sm);
}
.mb-md {
    margin-bottom: var(--space-md);
}
.mb-lg {
    margin-bottom: var(--space-lg);
}
.flex {
    display: flex;
}
.items-center {
    align-items: center;
}
.justify-between {
    justify-content: space-between;
}
.gap-sm {
    gap: var(--space-sm);
}
.gap-md {
    gap: var(--space-md);
}
.hidden {
    display: none;
}

/* Score legend */
.score-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Billable comparison */
.billable-comparison {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.billable-item {
    text-align: center;
}

.billable-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

.billable-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.billable-gap {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.billable-gap.positive {
    background: #dcfce7;
    color: var(--score-exceptional);
}

.billable-gap.negative {
    background: #fee2e2;
    color: var(--score-concern);
}

/* Employee Header with Score Ring */
.employee-header-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.employee-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.employee-header-info {
    flex: 1;
}

.employee-header-info h1 {
    margin-bottom: var(--space-xs);
}

.employee-header-score {
    text-align: center;
    padding: var(--space-md);
}

.employee-header-score .overall-score-ring {
    width: 140px;
    height: 140px;
    margin: 0 auto var(--space-sm);
}

.employee-header-score .overall-score-number {
    font-size: 2rem;
}

.final-score-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

/* Card header with actions */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.card-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Full width category grid */
.category-scores-grid-full {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Question scores column alignment */
.question-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 80px;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
}

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

.question-score {
    text-align: center;
    display: flex;
    justify-content: center;
}

.question-score .score-badge {
    min-width: 50px;
}

/* Gap column */
.question-row > div:last-child {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .employee-header-content {
        flex-direction: column;
        text-align: center;
    }

    .employee-header-score {
        order: -1;
    }

    .card-header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .card-actions {
        width: 100%;
        justify-content: center;
    }

    .question-row {
        grid-template-columns: 1fr 60px 60px 60px;
    }
}

/* Score Distribution Chart */
.distribution-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.distribution-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.distribution-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding: var(--space-md) 0;
    border-bottom: 2px solid var(--gray-200);
}

.distribution-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 100px;
}

.distribution-bar {
    width: 40px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 10px;
    transition: height 0.5s ease-out;
}

.distribution-count {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: var(--space-sm);
}

.distribution-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-align: center;
    margin-top: var(--space-xs);
    line-height: 1.3;
}

.stat-card-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--gray-200);
}

/* Team Cards with Mini Charts */
.team-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
    cursor: pointer;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.team-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.team-card-name {
    font-weight: 600;
    font-size: 1rem;
}

.team-card-score {
    font-size: 1.25rem;
    font-weight: 700;
}

.team-card-manager {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}

.mini-chart {
    display: flex;
    gap: var(--space-xs);
    align-items: flex-end;
    height: 40px;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--gray-100);
}

.mini-bar {
    flex: 1;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 4px;
    position: relative;
}

.mini-bar-label {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    color: var(--gray-500);
    white-space: nowrap;
}

/* Grading Tendencies Section */
.grading-tendencies {
    margin-top: var(--space-xl);
}

.tendency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.tendency-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.tendency-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tendency-name {
    font-weight: 600;
    font-size: 1rem;
}

.tendency-badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.tendency-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tendency-stats {
    margin-bottom: var(--space-md);
}

.tendency-hard {
    background: #fee2e2;
    color: #dc2626;
}

.tendency-soft {
    background: #d1fae5;
    color: #059669;
}

.tendency-very_soft {
    background: #bbf7d0;
    color: #16a34a;
}

.tendency-neutral {
    background: var(--gray-100);
    color: var(--gray-600);
}

.tendency-detail {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.tendency-score {
    font-weight: 600;
    margin-left: var(--space-xs);
}

.tendency-distribution {
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-100);
}

.mini-dist-bar {
    height: 8px;
    min-width: 4px;
    border-radius: 2px;
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s;
}

.user-menu-toggle:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.user-menu-toggle .dropdown-arrow {
    font-size: 0.625rem;
    transition: transform 0.2s;
}

.user-menu.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-xs);
    min-width: 180px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 200;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.dropdown-header .user-name {
    font-weight: 600;
    color: var(--gray-900);
}

.dropdown-header .user-role {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: capitalize;
}

.dropdown-items {
    padding: var(--space-sm) 0;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: background 0.2s;
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--gray-100);
    text-decoration: none;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-sm) 0;
}

.dropdown-item.logout {
    color: #dc2626;
}

/* ============ INSIGHTS PAGE CHARTS ============ */

/* Filter Row */
.filter-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.stat-mini-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.stat-mini-value {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Distribution Chart */
.distribution-chart {
    padding: var(--space-lg) 0;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 180px;
    padding-bottom: var(--space-lg);
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 120px;
}

.chart-bar-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.chart-bar {
    width: 50px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 5px;
    transition: height 0.3s ease;
}

.chart-bar-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-align: center;
    margin-top: var(--space-sm);
    line-height: 1.3;
}

/* Category Chart Cards */
.category-chart-card {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.category-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.category-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.category-bar-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.category-bar-label {
    width: 60px;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.category-bar-track {
    flex: 1;
    height: 20px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

.category-bar-value {
    width: 45px;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: right;
}

/* Histogram (Bell Curve) */
.histogram {
    position: relative;
    padding: var(--space-md) 0;
}

.histogram-bars {
    display: flex;
    align-items: flex-end;
    height: 120px;
    gap: 2px;
}

.histogram-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.histogram-bar {
    width: 100%;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 2px;
    transition: height 0.3s ease;
}

.histogram-label {
    font-size: 0.625rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

.histogram-mean-line {
    position: absolute;
    top: 0;
    bottom: 30px;
    width: 2px;
    background: #dc2626;
}

.histogram-mean-marker {
    position: absolute;
    top: -5px;
    left: -4px;
    width: 10px;
    height: 10px;
    background: #dc2626;
    border-radius: 50%;
}

.histogram-mean-label {
    position: absolute;
    top: -25px;
    left: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
    white-space: nowrap;
}

/* Tendency Chart (Horizontal Bar) */
.tendency-chart {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.tendency-row {
    display: grid;
    grid-template-columns: 150px 1fr 60px 70px;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-100);
}

.tendency-row:last-child {
    border-bottom: none;
}

.tendency-row-name {
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tendency-row-bar {
    position: relative;
}

.tendency-bar-track {
    position: relative;
    height: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.tendency-bar-center {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-400);
}

.tendency-bar-fill {
    position: absolute;
    top: 2px;
    bottom: 2px;
    border-radius: var(--radius-sm);
}

.tendency-row-score {
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
}

.tendency-row-badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.tendency-row-badge.tendency-hard {
    background: #fee2e2;
    color: #dc2626;
}

.tendency-row-badge.tendency-soft,
.tendency-row-badge.tendency-very_soft {
    background: #d1fae5;
    color: #059669;
}

.tendency-row-badge.tendency-neutral {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Gap Indicator */
.gap-indicator {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
}

.gap-indicator.gap-positive {
    background: #dbeafe;
    color: #2563eb;
}

.gap-indicator.gap-negative {
    background: #fee2e2;
    color: #dc2626;
}

/* Mini Distribution Bar (for tendency cards) */
.tendency-distribution {
    display: flex;
    height: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.mini-dist-bar {
    min-width: 4px;
}

/* Very Soft Badge */
.tendency-badge.tendency-very_soft {
    background: #bbf7d0;
    color: #15803d;
}

/* Responsive */
@media (max-width: 768px) {
    .tendency-row {
        grid-template-columns: 100px 1fr 50px 60px;
    }

    .chart-bars {
        flex-wrap: wrap;
        height: auto;
    }

    .chart-bar-container {
        min-width: 80px;
        margin-bottom: var(--space-md);
    }
}

/* ============ CHART.JS CONTAINERS ============ */

/* Chart Card styling */
.chart-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    transition: box-shadow 0.3s ease;
}

.chart-card:hover {
    box-shadow: var(--shadow-lg);
}

.chart-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary-blue-light);
}

/* Chart container */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 250px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Chart legends custom styling */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-100);
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Chart loading state */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: var(--gray-400);
}

.chart-loading .spinner {
    width: 32px;
    height: 32px;
}

/* Chart empty state */
.chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: var(--gray-400);
    text-align: center;
}

.chart-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.chart-empty-text {
    font-size: 0.875rem;
}

/* Chart tooltip enhancements */
.chart-tooltip {
    background: rgba(17, 24, 39, 0.95) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive chart adjustments */
@media (max-width: 768px) {
    .chart-container {
        min-height: 200px;
    }

    .chart-card {
        padding: var(--space-md);
    }

    .chart-card .card-title {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .chart-container {
        min-height: 180px;
    }
}

/* Specific chart type styles */

/* Radar chart */
.chart-radar .chart-container {
    min-height: 280px;
}

/* Doughnut/Pie chart */
.chart-doughnut .chart-container {
    min-height: 300px;
}

/* Bar chart */
.chart-bar .chart-container {
    min-height: 320px;
}

/* Bubble chart */
.chart-bubble .chart-container {
    min-height: 380px;
}

/* Scatter plot */
.chart-scatter .chart-container {
    min-height: 320px;
}

/* Polar area chart */
.chart-polar .chart-container {
    min-height: 280px;
}

/* Chart grid layouts */
.charts-row {
    display: grid;
    gap: var(--space-lg);
}

.charts-row.charts-2 {
    grid-template-columns: repeat(2, 1fr);
}

.charts-row.charts-3 {
    grid-template-columns: repeat(3, 1fr);
}

.charts-row.charts-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .charts-row.charts-3,
    .charts-row.charts-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .charts-row.charts-2,
    .charts-row.charts-3,
    .charts-row.charts-4 {
        grid-template-columns: 1fr;
    }
}

/* Chart annotations */
.chart-annotation {
    position: absolute;
    font-size: 0.75rem;
    color: var(--gray-600);
    background: white;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Chart stats overlay */
.chart-stats-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.chart-stats-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.chart-stats-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
}

/* Chart comparison indicators */
.chart-vs-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.chart-vs-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chart-vs-color {
    width: 16px;
    height: 4px;
    border-radius: 2px;
}

.chart-vs-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* Animation for chart appearance */
@keyframes chartFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-card {
    animation: chartFadeIn 0.4s ease-out;
}

/* Staggered animation for multiple charts */
.grid .chart-card:nth-child(1) {
    animation-delay: 0s;
}
.grid .chart-card:nth-child(2) {
    animation-delay: 0.1s;
}
.grid .chart-card:nth-child(3) {
    animation-delay: 0.2s;
}
.grid .chart-card:nth-child(4) {
    animation-delay: 0.3s;
}
.grid .chart-card:nth-child(5) {
    animation-delay: 0.4s;
}
.grid .chart-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* ============================================ */
/* AI Review Insights Modal                     */
/* ============================================ */

.ai-insights-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    overflow-y: auto;
}

.ai-insights-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.ai-insights-modal-header h2 {
    margin: 0;
    color: var(--gray-800);
}

.ai-insights-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.ai-insights-modal-body {
    padding: 2rem;
    line-height: 1.7;
}

.ai-insights-header-info {
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.ai-insights-header-info h3 {
    margin: 0 0 0.25rem 0;
    color: var(--gray-800);
}

.ai-insights-header-info p {
    margin: 0;
    color: var(--gray-600);
}

.ai-insights-content {
    color: var(--gray-700);
}

.ai-insights-content h3 {
    color: var(--primary);
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.ai-insights-content h3:first-child {
    margin-top: 0;
}

.ai-insights-content ul {
    margin: 0.5rem 0 1rem 0;
    padding-left: 1.5rem;
}

.ai-insights-content li {
    margin-bottom: 0.5rem;
}

.ai-insights-content strong {
    color: var(--gray-800);
}

.ai-insights-modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

body.modal-open {
    overflow: hidden;
}

/* ============ TABLE COLUMN WIDTHS ============ */
/* Constrain score columns to prevent them from taking too much space */

/* DataTables score columns */
table.dataTable th.score-col,
table.dataTable td.score-col,
table th.score-col,
table td.score-col {
    width: 70px !important;
    min-width: 60px;
    max-width: 80px;
    text-align: center;
}

/* Narrow score columns for compact tables */
table.dataTable th.score-col-narrow,
table.dataTable td.score-col-narrow,
table th.score-col-narrow,
table td.score-col-narrow {
    width: 55px !important;
    min-width: 50px;
    max-width: 65px;
    text-align: center;
}

/* Status/action columns */
table.dataTable th.status-col,
table.dataTable td.status-col,
table th.status-col,
table td.status-col {
    width: 100px !important;
    min-width: 90px;
    max-width: 120px;
    text-align: center;
}

/* Action buttons column */
table.dataTable th.actions-col,
table.dataTable td.actions-col,
table th.actions-col,
table td.actions-col {
    width: 80px !important;
    min-width: 70px;
    max-width: 100px;
    text-align: center;
}

/* Name columns should expand to fill remaining space */
table.dataTable th.name-col,
table.dataTable td.name-col,
table th.name-col,
table td.name-col {
    min-width: 150px;
}

/* Print styles for AI Insights Modal */
@media print {
    /* Hide everything by default */
    body * {
        visibility: hidden;
    }

    /* Show only the insights modal when printing */
    .ai-insights-modal.printing,
    .ai-insights-modal.printing .ai-insights-modal-content,
    .ai-insights-modal.printing .ai-insights-modal-content * {
        visibility: visible;
    }

    .ai-insights-modal.printing {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background: white;
        padding: 0;
        display: block !important;
    }

    .ai-insights-modal.printing .ai-insights-modal-content {
        max-width: 100%;
        max-height: none;
        box-shadow: none;
        border-radius: 0;
    }

    .ai-insights-modal.printing .ai-insights-modal-header {
        position: relative;
        border-bottom: 2px solid #333;
    }

    .ai-insights-modal.printing .no-print {
        display: none !important;
    }

    .ai-insights-modal.printing .ai-insights-content h3 {
        page-break-after: avoid;
    }

    .ai-insights-modal.printing .ai-insights-content ul {
        page-break-inside: avoid;
    }
}

/* Quill Content Rendering */
.quill-content {
    line-height: 1.6;
}

.quill-content p {
    margin-bottom: 0.5em;
}

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

.quill-content ul,
.quill-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.quill-content li {
    margin-bottom: 0.25em;
}

.quill-content strong {
    font-weight: 600;
}

.quill-content em {
    font-style: italic;
}

.quill-content u {
    text-decoration: underline;
}

.quill-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.quill-content blockquote {
    border-left: 3px solid var(--gray-300);
    padding-left: 1em;
    margin: 0.5em 0;
    color: var(--gray-600);
}
