/* Main styles */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.container-fluid {
  max-width: 1400px;
}

/* Navigation styles */
.navbar {
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
  font-weight: 600;
  color: #343a40 !important;
  letter-spacing: 0.5px;
}

.navbar-text {
  color: #6c757d;
}

.nav-link, .dropdown-item {
  color: #343a40 !important;
  transition: color 0.3s ease;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.nav-link:hover, .dropdown-item:hover {
  color: #007bff !important;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

/* Dropdown menu styling */
.dropdown-menu {
  border-radius: 0.25rem;
  background-color: #fff;
}

.dropdown-item:hover {
  background-color: #f1f3f5;
}

/* Dashboard styles */
.welcome-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.btn-custom {
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-papers {
  background-color: #007bff;
  color: #fff;
}

.btn-enter-grades {
  background-color: #28a745;
  color: #fff;
}

.btn-compare {
  background-color: #ffc107;
  color: #212529;
}

.btn-view-grades {
  background-color: #17a2b8;
  color: #fff;
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

/* Table styles */
.table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.table thead th {
  background-color: #343a40;
  color: #fff;
  border-bottom: none;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0,0,0,.05);
}

/* Form styles */
.form-control {
  border-radius: 4px;
  border: 1px solid #ced4da;
  font-size: 1rem;
  line-height: 1.5;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Button styles */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Alert styles */
.alert {
  border-radius: 4px;
  border: none;
  font-weight: 400;
  line-height: 1.5;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-custom {
    margin-bottom: 1rem;
  }
}

@media (max-width: 992px) {
  .navbar-nav {
    padding-top: 1rem;
  }
  .nav-item {
    margin-bottom: 0.5rem;
  }
}

/* Paper submission form styles */
#addPaperForm {
  max-width: 800px;
  margin: 0 auto;
}

#addPaperForm .form-label {
  font-weight: 500;
}

#addPaperForm .form-control,
#addPaperForm .form-select {
  border-radius: 0.25rem;
}

#addPaperForm .alert {
  border-radius: 0.25rem;
}

#addPaperForm section {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

#addPaperForm h2 {
  color: #007bff;
}

#addPaperForm .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

#addPaperForm .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Radio button group styles */
.radio-group {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  padding: 0.5rem;
}

.radio-group ul {
  margin-bottom: 0;
}

.radio-group li {
  margin-bottom: 0.5rem;
}

.radio-group li:last-child {
  margin-bottom: 0;
}

.radio-group input[type="radio"] {
  margin-right: 0.5rem;
}

/* Form validation styles */
.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 80%;
  color: #dc3545;
}

.is-invalid {
  border-color: #dc3545;
}

.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}
/* Add these styles to main.css */

/* User management page styles */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.table thead th {
  background-color: #020303;
  border-bottom: 2px solid #dee2e6;
}

.table tbody tr:hover {
  background-color: #f1f3f5;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.btn-group .btn:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Card styles */
.card {
  border: none;
  transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

/* Form styles */
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  border-color: #80bdff;
}

/* Alert styles */
.alert-info {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #495057;
}
/* Update these styles in main.css */

/* Grade Reporting Form styles */
.card {
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease-in-out;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Radio button styles */
.form-check-input {
  margin-top: 0.3rem;
}

.form-check-label {
  margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .card-body {
      padding: 1rem;
  }
  
  .form-group.row {
      margin-bottom: 1rem;
  }
  
  .col-form-label {
      padding-bottom: 0.5rem;
  }
}

/* Check Paper Form styles */
.check-paper-card {
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease-in-out;
}

.check-paper-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.check-paper-form .form-control:focus,
.check-paper-form .form-select:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.check-paper-form .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.check-paper-form .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Similarity Results styles */
.similarity-results-card {
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease-in-out;
}

.similarity-results-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

/* Table styles */
.similarity-results-table {
  border-radius: 0.25rem;
  overflow: hidden;
}

.similarity-results-table thead th {
  background-color: #0056b3;
  border-bottom: 2px solid #dee2e6;
}

.similarity-results-table tbody tr:hover {
  background-color: #f1f3f5;
}

/* Loading spinner */
.check-paper-loading {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .check-paper-card .card-body,
  .similarity-results-card .card-body {
      padding: 1rem;
  }
  
  .similarity-results-table {
      font-size: 0.875rem;
  }
}
/* Radio button styles */
.check-paper-form .form-check {
  padding-left: 0;
}

.check-paper-form .form-check-input[type="radio"] {
  margin-left: 0;
  margin-right: 0.5rem;
}

.check-paper-form .form-check-label {
  margin-left: 1.5rem;
}

/* Grade Reporting Form specific styles */
.grade-reporting-form .card {
  border-radius: 15px;
}

.grade-reporting-form .card-header {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.grade-reporting-form .bg-light {
  background-color: #f8f9fa !important;
}

.grade-reporting-form .shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

.grade-reporting-form .text-primary {
  color: #007bff !important;
}

.grade-reporting-form .form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.grade-reporting-form .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.grade-reporting-form .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}
/* Paper Submission Form specific styles */
.paper-submission-form .card {
  border-radius: 15px;
}

.paper-submission-form .card-header {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.paper-submission-form .bg-light {
  background-color: #f8f9fa !important;
}

.paper-submission-form .shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

.paper-submission-form .text-primary {
  color: #007bff !important;
}

.paper-submission-form .form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.paper-submission-form .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.paper-submission-form .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.paper-submission-form .form-check-input {
  margin-top: 0.3rem;
}

.paper-submission-form .form-check-label {
  margin-left: 0.5rem;
}

/* Instructor View Specific Styles */
:root {
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
}

.instructor-view-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Floating Course Navigator - Left Side */
.course-navigator {
    position: fixed;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
    min-width: 80px;
}

.course-nav-header {
    font-size: var(--text-xs);
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.5rem;
    text-align: center;
}

.course-nav-item {
    display: block;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    color: #374151;
    border-radius: 0.375rem;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 0.25rem;
    text-align: center;
}

.course-nav-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.course-nav-item.active {
    background: #2563eb;
    color: white;
}

.instructor-compact-header {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    scroll-margin-top: 2rem;
}

.instructor-course-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
    color: #1f2937;
}

.instructor-course-meta {
    color: #6b7280;
    font-size: var(--text-sm);
    margin: 0;
}

.instructor-stats-bar {
    display: flex;
    gap: 2rem;
}

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

.instructor-stat-number {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    margin: 0;
}

.instructor-stat-label {
    font-size: var(--text-xs);
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.instructor-not-submitted {
    background: #fef2f2;
}

.instructor-submissions-table {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.instructor-table-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem;
    display: grid;
    grid-template-columns: 2rem 1fr 1.5fr 2fr 1fr 0.8fr 1fr 0.6rem 0.6rem 1.2fr;
    gap: 0.75rem;
    align-items: center;
    font-weight: 600;
    font-size: var(--text-xs);
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instructor-submission-row {
    padding: 0.5rem 0.75rem;
    display: grid;
    grid-template-columns: 2rem 1fr 1.5fr 2fr 1fr 0.8fr 1fr 0.6rem 0.6rem 1.2fr;
    gap: 0.75rem;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: var(--text-sm);
    transition: background-color 0.15s ease;
    min-height: 3rem;
}

.instructor-submission-row:hover {
    background: #f8fafc;
}

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

.instructor-student-name {
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.instructor-student-id {
    color: #6b7280;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: var(--text-xs);
}

.instructor-stray-indicator {
    color: #d97706;
    font-weight: 600;
    margin-left: 0.25rem;
}

.instructor-submission-time {
    color: #6b7280;
    font-size: var(--text-xs);
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

.instructor-paper-title {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.3;
    display: block;
}

.instructor-paper-title:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* .instructor-word-count {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    color: #6b7280;
    text-align: right;
    font-size: var(--text-sm);
} */

.instructor-similarity-cell {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.instructor-sim-badge {
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: var(--text-xs);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    display: inline-block;
}

.instructor-sim-safe { 
    background: #dcfce7; 
    color: #059669; 
}

.instructor-sim-warning { 
    background: #fef3c7; 
    color: #d97706; 
}

.instructor-sim-danger { 
    background: #fee2e2; 
    color: #dc2626; 
}

.instructor-sim-none { 
    color: #6b7280; 
    font-style: italic;
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: var(--text-xs);
}

.instructor-status-indicator {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
    margin: 0 auto;
}

.instructor-status-yes { background: #059669; }
.instructor-status-no { background: #dc2626; }

.instructor-actions-cell {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}

.instructor-action-btn {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: var(--text-xs);
    transition: all 0.15s ease;
}

.instructor-bulk-bar {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instructor-selection-info {
    font-size: var(--text-sm);
    color: #6b7280;
}

.instructor-period-nav {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instructor-period-title {
    font-weight: 600;
    margin: 0;
}

.instructor-archive-links {
    display: flex;
    gap: 0.5rem;
}

.instructor-archive-links a {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    font-size: var(--text-sm);
    transition: all 0.15s ease;
}

.instructor-archive-links a:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Responsive */
@media (max-width: 1200px) {
    .instructor-view-container {
        padding: 0 1rem;
    }

    .course-navigator {
        left: 0.5rem;
        min-width: 70px;
    }
    
    .instructor-table-header,
    .instructor-submission-row {
        grid-template-columns: 2rem 1fr 1.5fr 1.8fr 1fr 0.8fr 0.6rem 0.6rem 1fr;
    }
    
    .instructor-stats-bar {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .instructor-view-container {
        padding: 0 0.5rem;
    }

    .course-navigator {
        display: none;
    }
    
    .instructor-compact-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .instructor-stats-bar {
        width: 100%;
        justify-content: space-around;
    }
    
    .instructor-table-header {
        display: none;
    }
    
    .instructor-submission-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem 0.75rem;
    }
    
    .instructor-submission-row > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .instructor-submission-row > div:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: var(--text-xs);
    }
}
.instructor-table-header > div:nth-child(10),
.instructor-submission-row > div:nth-child(10) {
    text-align: right;
    justify-self: end;
}
.instructor-table-header > div:last-child,
.instructor-submission-row > div:last-child {
    text-align: right;
    justify-self: end;
}

.instructor-actions-cell {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}
.instructor-period-title {
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem; /* Reduced from default */
}

.instructor-permissions-group {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

/* Update grid template to account for one less column */
.instructor-table-header,
.instructor-submission-row {
    grid-template-columns: 2rem 1fr 1.5fr 2fr 1fr 0.8fr 1fr 1fr 1.2fr;
}

/* For smaller screens, keep the same responsive adjustments */
@media (max-width: 1200px) {
    .instructor-table-header,
    .instructor-submission-row {
        grid-template-columns: 2rem 1fr 1.5fr 1.8fr 1fr 0.8fr 0.8fr 1fr;
    }
}

.instructor-word-count {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    color: #6b7280;
    text-align: left; /* Changed from right to center */
    font-size: var(--text-sm);
}
/* Paper comparison styles for SCREEN */
.comparison-container {
    max-width: 1600px;
}

.paper-content {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 150vh; /* Changed from 80vh to 150vh */
    overflow-y: auto;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    padding: 20px;
}
.paper-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 2px solid #dee2e6 !important;
}

.comparison-toolbar {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.comparison-header .alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Print styles for paper comparison */
@media print {
    /* Force all browsers to print background colors */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Remove margins completely */
    @page {
        margin: 0.5cm !important;
    }
    
    body {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Hide everything except the papers */
    .comparison-header,
    .comparison-toolbar,
    .navbar,
    .alert {
        display: none !important;
    }
    
    /* Use full page width with minimal margins */
    .comparison-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* Make papers take full page */
    .row {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .col-6 {
        width: 50% !important;
        max-width: 50% !important;
        padding: 0 2px !important;
        margin: 0 !important;
    }
    
    /* Remove containers and make content flow */
    .paper-container {
        height: auto !important;
        box-shadow: none !important;
        width: 100% !important;
    }
    
    .paper-header {
        background: white !important;
        border-bottom: 1px solid #000 !important;
        padding: 8px !important;
        page-break-inside: avoid;
        margin: 0 !important;
    }
    
    .paper-content {
        height: auto !important;
        overflow: visible !important;
        box-shadow: none !important;
        border: none !important;
        padding: 8px !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    
/* Force mark tags to print their inline background colors */
mark[style*="background-color"] {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
}

    
    /* Student names in print */
    .paper-header h5 {
        font-size: 13px !important;
        margin-bottom: 2px !important;
        color: #000 !important;
    }
    
    .paper-header small {
        font-size: 9px !important;
        color: #666 !important;
    }
}

/* Instructor View Specific Styles - Updated for compact layout */
:root {
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
}

.instructor-view-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Floating Course Navigator - Left Side */
.course-navigator {
    position: fixed;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
    min-width: 80px;
}

.course-nav-header {
    font-size: var(--text-xs);
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.5rem;
    text-align: center;
}

.course-nav-item {
    display: block;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    color: #374151;
    border-radius: 0.375rem;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 0.25rem;
    text-align: center;
}

.course-nav-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.course-nav-item.active {
    background: #2563eb;
    color: white;
}

/* More compact header */
.instructor-compact-header {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem; /* Reduced from 1rem */
    margin-bottom: 0.5rem; /* Reduced from 1rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    scroll-margin-top: 2rem;
}

.instructor-course-title {
    font-weight: 600;
    font-size: 1.1rem; /* Reduced from 1.25rem */
    margin: 0;
    color: #1f2937;
}

.instructor-course-meta {
    color: #6b7280;
    font-size: var(--text-xs); /* Reduced from var(--text-sm) */
    margin: 0;
}

.instructor-stats-bar {
    display: flex;
    gap: 1.5rem; /* Reduced from 2rem */
}

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

.instructor-stat-number {
    font-weight: 700;
    font-size: 1.25rem; /* Reduced from 1.5rem */
    line-height: 1;
    margin: 0;
}

.instructor-stat-label {
    font-size: var(--text-xs);
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.instructor-not-submitted {
    background: #fef2f2;
}

.instructor-submissions-table {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Updated grid template - removed Title column, moved Actions to position 2 */
.instructor-table-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem; /* Reduced padding */
    display: grid;
    grid-template-columns: 2rem 1fr 1fr 1.5fr 1fr 0.8fr 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
    font-weight: 600;
    font-size: var(--text-xs);
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instructor-submission-row {
    padding: 0.4rem 0.75rem; /* Reduced from 0.5rem */
    display: grid;
    grid-template-columns: 2rem 1fr 1fr 1.5fr 1fr 0.8fr 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: var(--text-sm);
    transition: background-color 0.15s ease;
    min-height: 2.5rem; /* Reduced from 3rem */
}

.instructor-submission-row:hover {
    background: #f8fafc;
}

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

/* Student name with hover tooltip for paper title */
.instructor-student-name {
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    cursor: default; /* Show cursor hint for tooltip */
}

.instructor-student-id {
    color: #6b7280;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: var(--text-xs);
}

.instructor-stray-indicator {
    color: #d97706;
    font-weight: 600;
    margin-left: 0.25rem;
}

.instructor-submission-time {
    color: #6b7280;
    font-size: var(--text-xs);
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

.instructor-word-count {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    color: #6b7280;
    text-align: left;
    font-size: var(--text-sm);
}

.instructor-similarity-cell {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.instructor-sim-badge {
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: var(--text-xs);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    display: inline-block;
}

.instructor-sim-safe { 
    background: #dcfce7; 
    color: #059669; 
}

.instructor-sim-warning { 
    background: #fef3c7; 
    color: #d97706; 
}

.instructor-sim-danger { 
    background: #fee2e2; 
    color: #dc2626; 
}

.instructor-sim-none { 
    color: #6b7280; 
    font-style: italic;
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: var(--text-xs);
}

.instructor-status-indicator {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
    margin: 0 auto;
}

.instructor-status-yes { background: #059669; }
.instructor-status-no { background: #dc2626; }

.instructor-permissions-group {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

/* Actions cell - now positioned at the left */
.instructor-actions-cell {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-start; /* Changed from flex-end to flex-start */
}

.instructor-action-btn {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: var(--text-xs);
    transition: all 0.15s ease;
}

.instructor-bulk-bar {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instructor-selection-info {
    font-size: var(--text-sm);
    color: #6b7280;
}

.instructor-period-nav {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instructor-period-title {
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.instructor-archive-links {
    display: flex;
    gap: 0.5rem;
}

.instructor-archive-links a {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    font-size: var(--text-sm);
    transition: all 0.15s ease;
}

.instructor-archive-links a:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Responsive */
@media (max-width: 1200px) {
    .instructor-view-container {
        padding: 0 1rem;
    }

    .course-navigator {
        left: 0.5rem;
        min-width: 70px;
    }
    
    .instructor-table-header,
    .instructor-submission-row {
        grid-template-columns: 2rem 1fr 1fr 1.2fr 1fr 0.8fr 0.8fr 1fr;
    }
    
    .instructor-stats-bar {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .instructor-view-container {
        padding: 0 0.5rem;
    }

    .course-navigator {
        display: none;
    }
    
    .instructor-compact-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .instructor-stats-bar {
        width: 100%;
        justify-content: space-around;
    }
    
    .instructor-table-header {
        display: none;
    }
    
    .instructor-submission-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem 0.75rem;
    }
    
    .instructor-submission-row > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .instructor-submission-row > div:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: var(--text-xs);
    }
}
/* Instructor View Specific Styles - Updated for compact layout */
:root {
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
}

.instructor-view-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Floating Course Navigator - Left Side */
.course-navigator {
    position: fixed;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
    min-width: 80px;
}

.course-nav-header {
    font-size: var(--text-xs);
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.5rem;
    text-align: center;
}

.course-nav-item {
    display: block;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    color: #374151;
    border-radius: 0.375rem;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 0.25rem;
    text-align: center;
}

.course-nav-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.course-nav-item.active {
    background: #2563eb;
    color: white;
}

/* More compact header */
.instructor-compact-header {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem; /* Reduced from 1rem */
    margin-bottom: 0.5rem; /* Reduced from 1rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    scroll-margin-top: 2rem;
}

.instructor-course-title {
    font-weight: 600;
    font-size: 1.1rem; /* Reduced from 1.25rem */
    margin: 0;
    color: #1f2937;
}

.instructor-course-meta {
    color: #6b7280;
    font-size: var(--text-xs); /* Reduced from var(--text-sm) */
    margin: 0;
}

.instructor-stats-bar {
    display: flex;
    gap: 1.5rem; /* Reduced from 2rem */
}

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

.instructor-stat-number {
    font-weight: 700;
    font-size: 1.25rem; /* Reduced from 1.5rem */
    line-height: 1;
    margin: 0;
}

.instructor-stat-label {
    font-size: var(--text-xs);
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.instructor-not-submitted {
    background: #fef2f2;
}

.instructor-submissions-table {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Updated grid template - removed Title column, moved Actions to position 2 */
.instructor-table-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem; /* Reduced padding */
    display: grid;
    grid-template-columns: 2rem 1fr 1fr 1.5fr 1.3fr 0.8fr 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
    font-weight: 600;
    font-size: var(--text-xs);
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instructor-table-header > div:nth-child(6),
.instructor-table-header > div:nth-child(7),
.instructor-table-header > div:nth-child(8) {
    text-align: center;
}

.instructor-submission-row {
    padding: 0.3rem 0.75rem; /* Reduced from 0.4rem */
    display: grid;
    grid-template-columns: 2rem 1fr 1fr 1.5fr 1.3fr 0.8fr 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: var(--text-sm);
    transition: background-color 0.15s ease;
    min-height: 2rem; /* Reduced from 2.5rem */
}

.instructor-submission-row > div:nth-child(6),
.instructor-submission-row > div:nth-child(7),
.instructor-submission-row > div:nth-child(8) {
    text-align: center;
    justify-self: center;
}

.instructor-submission-row:hover {
    background: #f8fafc;
}

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

/* Student name with hover tooltip for paper title */
.instructor-student-name {
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    cursor: default; /* Show cursor hint for tooltip */
}

.instructor-student-id {
    color: #6b7280;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: var(--text-xs);
}

.instructor-stray-indicator {
    color: #d97706;
    font-weight: 600;
    margin-left: 0.25rem;
}

.instructor-submission-time {
    color: #6b7280;
    font-size: var(--text-xs);
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.instructor-word-count {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    color: #6b7280;
    text-align: center;
    font-size: var(--text-sm);
}

.instructor-similarity-cell {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.instructor-sim-badge {
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: var(--text-xs);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    display: inline-block;
}

.instructor-sim-safe { 
    background: #dcfce7; 
    color: #059669; 
}

.instructor-sim-warning { 
    background: #fef3c7; 
    color: #d97706; 
}

.instructor-sim-danger { 
    background: #fee2e2; 
    color: #dc2626; 
}

.instructor-sim-none { 
    color: #6b7280; 
    font-style: italic;
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: var(--text-xs);
}

.instructor-status-indicator {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
    margin: 0 auto;
}

.instructor-status-yes { background: #059669; }
.instructor-status-no { background: #dc2626; }

.instructor-permissions-group {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Actions cell - now positioned at the left */
.instructor-actions-cell {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-start; /* Changed from flex-end to flex-start */
}

.instructor-action-btn {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: var(--text-xs);
    transition: all 0.15s ease;
}

.instructor-bulk-bar {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instructor-selection-info {
    font-size: var(--text-sm);
    color: #6b7280;
}

.instructor-period-nav {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instructor-period-title {
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.instructor-archive-links {
    display: flex;
    gap: 0.5rem;
}

.instructor-archive-links a {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    font-size: var(--text-sm);
    transition: all 0.15s ease;
}

.instructor-archive-links a:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Responsive */
@media (max-width: 1200px) {
    .instructor-view-container {
        padding: 0 1rem;
    }

    .course-navigator {
        left: 0.5rem;
        min-width: 70px;
    }
    
    .instructor-table-header,
    .instructor-submission-row {
        grid-template-columns: 2rem 1fr 1fr 1.2fr 1.2fr 0.8fr 0.8fr 1fr;
    }
    
    .instructor-stats-bar {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .instructor-view-container {
        padding: 0 0.5rem;
    }

    .course-navigator {
        display: none;
    }
    
    .instructor-compact-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .instructor-stats-bar {
        width: 100%;
        justify-content: space-around;
    }
    
    .instructor-table-header {
        display: none;
    }
    
    .instructor-submission-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem 0.75rem;
    }
    
    .instructor-submission-row > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .instructor-submission-row > div:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        font-size: var(--text-xs);
    }
}

/* Nested dropdown styles */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  border-radius: 0.25rem;
}

.dropdown-submenu:hover .dropdown-menu {
  display: block;
}

.dropdown-submenu .dropdown-toggle::after {
  transform: rotate(-90deg);
  float: right;
  margin-top: 8px;
}

/* Handle mobile responsiveness */
@media (max-width: 768px) {
  .dropdown-submenu .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: #f8f9fa;
    border: none;
    box-shadow: none;
  }
}

/* Creative Hybrid Dashboard */
.dashboard-hybrid {
    font-size: 0.9rem;
    background: #f8fafc;
    min-height: 100vh;
}

.dashboard-hybrid .container {
    max-width: 1400px;
    padding: 1rem;
}

.dashboard-hybrid h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-weight: 700;
}

/* Action Grid - Compact cards with subtle shadows */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 1200px) {
    .action-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.action-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    height: 56px;
}

.action-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #1e293b;
    text-decoration: none;
    border-color: #cbd5e1;
}

.action-card i {
    width: 20px !important;
    height: 20px !important;
    margin-right: 0.75rem;
    flex-shrink: 0;
    color: #6366f1;
}

.action-card-title {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.3;
    margin: 0;
}

/* Special styling for submit paper card */
.submit-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #059669;
    grid-column: 1 / -1;
    justify-content: center;
    height: 48px;
    margin-bottom: 1rem;
}

.submit-card:hover {
    color: white;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.submit-card i {
    color: white;
}

/* Stats Overview Section */
.stats-overview {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stats-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.stats-summary {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.stats-summary div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-number {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
}

.stats-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Enhanced Submission Table */
.submission-table {
    font-size: 0.85rem;
}

.submission-table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    border: none;
    padding: 0.75rem 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.submission-table tbody td {
    padding: 0.75rem 1rem;
    border-top: 1px solid #f1f5f9;
    vertical-align: middle;
}

.submission-table tbody tr:hover {
    background: #f8fafc;
}

/* Progress bars for submission rates */
.progress-mini {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.progress-mini-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-high { background: #10b981; }
.progress-medium { background: #f59e0b; }
.progress-low { background: #ef4444; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .action-card {
        padding: 0.5rem 0.75rem;
        height: 48px;
    }
    
    .action-card-title {
        font-size: 0.8rem;
    }
    
    .stats-summary {
        gap: 1rem;
    }
    
    .submission-table {
        font-size: 0.8rem;
    }
    
    .submission-table thead th,
    .submission-table tbody td {
        padding: 0.5rem;
    }
}

/* Dashboard Hybrid - FORCED STYLES */
.dashboard-hybrid {
    font-size: 0.9rem !important;
    background: #f8fafc !important;
    min-height: 100vh !important;
}

.dashboard-hybrid .container {
    max-width: 1400px !important;
    padding: 1rem !important;
}

.action-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
}

@media (min-width: 1200px) {
    .action-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

.action-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #374151 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    height: 56px !important;
}

.action-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    color: #1e293b !important;
    text-decoration: none !important;
    border-color: #cbd5e1 !important;
}

.action-card i {
    width: 20px !important;
    height: 20px !important;
    margin-right: 0.75rem !important;
    flex-shrink: 0 !important;
    color: #6366f1 !important;
}

.action-card-title {
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.submit-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-color: #059669 !important;
    grid-column: 1 / -1 !important;
    justify-content: center !important;
    height: 48px !important;
    margin-bottom: 1rem !important;
}

.submit-card:hover {
    color: white !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.submit-card i {
    color: white !important;
}

.stats-overview {
    background: white !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.stats-header {
    background: #f8fafc !important;
    color: #374151 !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.stats-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #1e293b !important;
}

.stats-summary {
    display: flex !important;
    gap: 1.5rem !important;
    font-size: 0.8rem !important;
}

.stats-summary div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.stats-number {
    font-weight: 700 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    color: #1e293b !important;
}

.stats-label {
    font-size: 0.7rem !important;
    color: #64748b !important;
    margin-top: 0.125rem !important;
}