/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* HYL Autopats Brand Colors */
    --primary-color: #0171BD;
    --primary-hover: #015a97;
    --primary-light: #d4edfc;
    --secondary-color: #E00E0F;
    --secondary-hover: #b50b0c;
    --secondary-light: #fdd9d9;
    --success-color: #059669;
    --danger-color: #E00E0F;
    --warning-color: #d97706;
    --info-color: #0171BD;

    /* Grays */
    --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;

    /* Design Tokens */
    --border-radius: 10px;
    --border-radius-sm: 6px;
    --border-radius-lg: 14px;
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(to bottom, var(--gray-50) 0%, #ffffff 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation - Styles now in nav.ejs partial for better organization */
nav {
    background: white;
    border-bottom: 2px solid var(--gray-100);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: calc(100vh - 120px);
}

/* Auth Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-xl);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--gray-100);
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition-base);
    background: white;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--gray-300);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(1, 113, 189, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0158a0 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(1, 113, 189, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #014a87 100%);
    box-shadow: 0 4px 12px rgba(1, 113, 189, 0.35);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #047857 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c20d0e 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(224, 14, 15, 0.25);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-hover) 0%, #a00a0b 100%);
    box-shadow: 0 4px 12px rgba(224, 14, 15, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c20d0e 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(224, 14, 15, 0.25);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-hover) 0%, #a00a0b 100%);
    box-shadow: 0 4px 12px rgba(224, 14, 15, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 113, 189, 0.25);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #c2670b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #c2670b 0%, #a85a0a 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Error Messages */
.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Dashboard Styles */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.75rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.stat-card h3 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-card p {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9375rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.dashboard-section:hover {
    box-shadow: var(--box-shadow-md);
}

.dashboard-section.full-width {
    grid-column: 1 / -1;
}

.dashboard-section h3 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
    padding-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.375rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 2px solid var(--primary-color);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table .text-center {
    text-align: center;
}

/* Modern Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border: 1px solid;
    transition: all var(--transition-base);
}

.status-assigned {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2fe 100%);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.status-assigned:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(1, 113, 189, 0.2);
}

.status-inprogress {
    background: linear-gradient(135deg, #fed7aa 0%, #ffedd5 100%);
    color: #c2410c;
    border-color: #ea580c;
}

.status-inprogress:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2);
}

.status-completed {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    color: #166534;
    border-color: #059669;
}

.status-completed:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.status-expired {
    background: linear-gradient(135deg, var(--secondary-light) 0%, #fee2e2 100%);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.status-expired:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(224, 14, 15, 0.2);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transition: width 0.3s ease;
}

/* Assessment Taking Styles */
.assessment-container {
    max-width: 800px;
    margin: 0 auto;
}

.assessment-header {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.assessment-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.question-container {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.question-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.question-container h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    margin-right: 0.75rem;
    vertical-align: middle;
}

.question-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

/* Results Styles */
.results-header {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.score-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 1rem 0;
}

.results-summary {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.qa-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.qa-block {
    padding: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.qa-block:last-child {
    border-bottom: none;
}

.qa-block h4 {
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.answer-text {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-style: italic;
    border-left: 3px solid var(--gray-300);
}

.feedback-text {
    color: var(--gray-600);
    padding: 1rem;
    background: #fefce8;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--warning-color);
}

/* Utility Classes */
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }

/* Modern Footer */
footer {
    background: linear-gradient(135deg, #f9fafb 0%, white 100%);
    border-top: 2px solid var(--gray-100);
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 4rem;
    color: var(--gray-600);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Responsive Design */

/* Tablet and Medium Screens */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 0 1rem;
    }
}

/* Mobile and Small Tablets */
@media (max-width: 768px) {
    /* Main content adjustments for mobile */
    main {
        padding-top: 0.5rem;
    }

    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    /* Main Content */
    main {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    /* Tables - Convert to card layout on mobile */
    .table-container {
        border: none;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
    }

    .data-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--gray-200);
        border-radius: var(--border-radius);
        background: white;
        box-shadow: var(--box-shadow);
    }

    .data-table td {
        text-align: right;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--gray-100);
        position: relative;
        padding-left: 50%;
    }

    .data-table td:last-child {
        border-bottom: none;
    }

    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        font-weight: 600;
        color: var(--gray-700);
        text-align: left;
    }

    .data-table td.text-center {
        text-align: right;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Buttons - Larger touch targets */
    .btn {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        width: 100%;
    }

    .btn-sm {
        padding: 0.625rem 1rem;
        min-height: 40px;
    }

    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header .btn {
        width: 100%;
    }

    /* Dashboard Sections */
    .dashboard-section {
        padding: 1.5rem;
    }

    .dashboard-section h3 {
        font-size: 1.125rem;
    }

    /* Assessment Container */
    .assessment-container {
        padding: 0;
    }

    .assessment-header {
        padding: 1.5rem;
    }

    .question-container {
        padding: 1.5rem;
    }

    .question-text {
        font-size: 1rem;
    }

    /* Results */
    .results-header {
        padding: 1.5rem;
    }

    .score-display {
        font-size: 2.5rem;
    }

    .qa-block {
        padding: 1.5rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Stats Grid - Stack on very small screens */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card h3 {
        font-size: 1.75rem;
    }

    /* Auth */
    .auth-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Navigation Brand */
    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-logo {
        height: 32px;
    }

    .company-logo {
        height: 28px;
    }

    .company-name {
        font-size: 0.875rem;
    }

    /* Main Content */
    main {
        padding: 0 0.75rem;
    }

    /* Dashboard */
    .dashboard-section {
        padding: 1rem;
    }

    /* Forms */
    .form-group label {
        font-size: 0.875rem;
    }

    /* Progress Bar */
    .assessment-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Results */
    .score-display {
        font-size: 2rem;
    }

    .qa-block {
        padding: 1rem;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-menu {
        height: calc(100vh - 60px);
    }

    main {
        margin: 0.5rem auto;
    }
}

/* Loading States */
.btn-loading {
    display: inline-flex;
    align-items: center;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Modern Animations - DISABLED */
.fade-in {
    /* Animation disabled - show immediately */
    opacity: 1 !important;
    transform: none !important;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Pulse animation for important elements */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Bounce animation */
.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-5%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Ripple Effect for Buttons */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Print Styles */
@media print {
    nav, footer, .btn {
        display: none !important;
    }
    
    main {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .dashboard-section,
    .qa-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/* ===================================
   Scoreboard - Company Grouped High Scores
   =================================== */

.company-high-scores-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.company-header-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.company-logo-large {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.company-name-header {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.assessment-scores-group {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.assessment-scores-group:last-child {
    border-bottom: none;
}

.assessment-header-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.assessment-header-small svg {
    flex-shrink: 0;
    color: var(--success-color);
}

.hires-scores-list {
    display: grid;
    gap: 1rem;
}

.hire-score-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hire-score-card:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hire-score-card.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #ffd700;
}

.hire-score-card.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    border-color: #c0c0c0;
}

.hire-score-card.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
    border-color: #cd7f32;
}

.hire-rank {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rank-1 .hire-rank {
    background: #ffd700;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.rank-2 .hire-rank {
    background: #c0c0c0;
    color: #000;
}

.rank-3 .hire-rank {
    background: #cd7f32;
    color: #fff;
}

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

.hire-name-prominent {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-1 .hire-name-prominent,
.rank-2 .hire-name-prominent,
.rank-3 .hire-name-prominent {
    color: #000;
}

.hire-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.rank-1 .hire-meta,
.rank-2 .hire-meta,
.rank-3 .hire-meta {
    color: rgba(0, 0, 0, 0.7);
}

.hire-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hire-score-value {
    flex-shrink: 0;
    text-align: right;
}

.score-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.rank-1 .score-number,
.rank-2 .score-number,
.rank-3 .score-number {
    color: #000;
}

.best-score-badge {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Company Scores */
@media (max-width: 768px) {
    .company-header-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .company-name-header {
        font-size: 1.5rem;
    }

    .assessment-scores-group {
        padding: 1rem;
    }

    .hire-score-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hire-info {
        text-align: center;
    }

    .hire-meta {
        justify-content: center;
    }

    .hire-score-value {
        text-align: center;
    }

    .score-number {
        font-size: 1.75rem;
    }
}


/* ===================================
   Idea Board - Read-Only Mode
   =================================== */

.read-only-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.95rem;
}

.read-only-notice svg {
    flex-shrink: 0;
    color: #f59e0b;
}

.read-only-notice strong {
    font-weight: 600;
}

/* Hide controls for read-only users */
.idea-board-page[data-user-role="hire"] #add-idea-btn,
.idea-board-page[data-user-role="hire"] .idea-card-actions {
    display: none !important;
}

/* Disable drag and drop visually for hire users */
.idea-board-page[data-user-role="hire"] .idea-card {
    cursor: default;
}

.idea-board-page[data-user-role="hire"] .lane-body {
    cursor: default;
}

