/* Lifted verbatim from assignment-submission-content.blade.php.
   Inline it was 20,778 bytes of HTML on every render;
   as a file the browser fetches it once. */
/* ============================================================================
   APPLE-STYLE STAT CARDS - SF Pro Inspired
   ============================================================================ */
.vscode-stat-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dark .vscode-stat-card {
    background: rgba(28, 28, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

html:not(.dark) .vscode-stat-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

.vscode-stat-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 122, 255, 0.3);
}

.dark .vscode-stat-card:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(10, 132, 255, 0.4);
}

.vscode-stat-card.vscode-locked {
    background: linear-gradient(135deg, rgba(175, 82, 222, 0.04) 0%, rgba(191, 90, 242, 0.04) 100%);
    border: 1px dashed rgba(175, 82, 222, 0.25);
}

html:not(.dark) .vscode-stat-card.vscode-locked {
    background: linear-gradient(135deg, rgba(175, 82, 222, 0.03) 0%, rgba(191, 90, 242, 0.03) 100%);
}

.vscode-stat-card.vscode-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.vscode-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: white;
}

.vscode-stat-icon.vscode-blue {
    background: linear-gradient(135deg, #0a84ff 0%, #007aff 100%);
    box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35);
}

.vscode-stat-icon.vscode-green {
    background: linear-gradient(135deg, #30d158 0%, #34c759 100%);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.35);
}

.vscode-stat-icon.vscode-purple {
    background: linear-gradient(135deg, #bf5af2 0%, #af52de 100%);
    box-shadow: 0 4px 16px rgba(175, 82, 222, 0.35);
}

.vscode-stat-icon.vscode-gray {
    background: linear-gradient(135deg, #8e8e93 0%, #636366 100%);
    box-shadow: 0 4px 16px rgba(142, 142, 147, 0.25);
}

.vscode-stat-content {
    flex: 1;
    min-width: 0;
}

.vscode-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 8px;
}

.dark .vscode-stat-label {
    color: rgba(255, 255, 255, 0.5);
}

html:not(.dark) .vscode-stat-label {
    color: rgba(0, 0, 0, 0.45);
}

.vscode-stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    letter-spacing: -0.03em;
    font-feature-settings: "tnum" 1;
}

.dark .vscode-stat-value {
    color: #f5f5f7;
}

html:not(.dark) .vscode-stat-value {
    color: #1d1d1f;
}

.vscode-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

.dark .vscode-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.vscode-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vscode-progress-fill.vscode-blue-fill {
    background: linear-gradient(90deg, #0a84ff 0%, #5ac8fa 100%);
}

.vscode-progress-fill.vscode-green-fill {
    background: linear-gradient(90deg, #30d158 0%, #a8e063 100%);
}

.vscode-progress-fill.vscode-purple-fill {
    background: linear-gradient(90deg, #bf5af2 0%, #da8fff 100%);
}

.vscode-upgrade-prompt {
    font-size: 14px;
    font-weight: 600;
    color: #af52de;
    display: flex;
    align-items: center;
    margin-top: 6px;
}

.dark .vscode-upgrade-prompt {
    color: #bf5af2;
}

.vscode-upgrade-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #bf5af2 0%, #af52de 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vscode-upgrade-btn:hover {
    background: linear-gradient(135deg, #af52de 0%, #9d3bc9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 82, 222, 0.4);
}

/* ============================================================================
   VSCODE-INSPIRED INFO BUTTON
   ============================================================================ */
.info-btn-vscode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: #007acc;
    border: 1px solid rgba(0, 122, 204, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 122, 204, 0.2);
}

.info-btn-vscode:hover {
    background: #005a9e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 122, 204, 0.3);
}

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

.info-btn-vscode i {
    font-size: 14px;
}

/* ============================================================================
   ANALYSIS REPORT MODAL - APPLE DESIGN SYSTEM
   ============================================================================ */

/* Modal Container - Apple-Inspired Floating Panel */



/* Scrollable Content Wrapper - Apple Style */



/* ============================================================================
   HEADER - Apple-Inspired Minimal Header
   ============================================================================ */



/* Apple Modal Header Elements */
.apple-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a84ff 0%, #5ac8fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(10, 132, 255, 0.35);
}

.apple-modal-icon i {
    font-size: 22px;
    color: white;
}

.apple-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

.dark .apple-modal-title {
    color: #f5f5f7;
}

.apple-modal-subtitle {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
    font-weight: 500;
    margin-top: 3px;
}

.dark .apple-modal-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.apple-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .apple-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.apple-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

.dark .apple-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================================
   PRIMARY SCORE CARDS - Premium Card Design
   ============================================================================ */






/* ============================================================================
   DETAILED STATISTICS SECTION - Modern Grid Layout
   ============================================================================ */






/* Shimmer Effect for Loading */
@keyframes modal-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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



/* ============================================================================
   SCROLLBAR - Premium Apple Style
   ============================================================================ */






/* ============================================================================
   LOADING SPINNER - Apple-Style Animation
   ============================================================================ */


/* ============================================================================
   CUSTOM SCROLLBAR FOR SECTIONS
   ============================================================================ */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin: 4px 0;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================================================
   OVERVIEW SECTION CARDS - Apple-Style Design
   ============================================================================ */
.overview-section-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .overview-section-card {
    background: rgba(28, 28, 30, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

html:not(.dark) .overview-section-card {
    background: #ffffff;
}

.overview-section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.dark .overview-section-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

html:not(.dark) .overview-section-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Section Headers - Apple Style */
.overview-section-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
}

.dark .overview-section-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html:not(.dark) .overview-section-header {
    background: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.matches-header {
    background: transparent;
}

.dark .matches-header {
    background: transparent;
}

html:not(.dark) .matches-header {
    background: transparent;
}

.files-header {
    background: transparent;
}

.dark .files-header {
    background: transparent;
}

html:not(.dark) .files-header {
    background: transparent;
}

/* Icon Badges - Apple Style */
.overview-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.overview-icon-badge:hover {
    transform: scale(1.05);
}

.matches-badge {
    background: linear-gradient(135deg, #bf5af2 0%, #af52de 100%);
    box-shadow: 0 6px 20px rgba(175, 82, 222, 0.35);
}

.files-badge {
    background: linear-gradient(135deg, #0a84ff 0%, #007aff 100%);
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.35);
}

/* Section Titles - Apple Style */
.overview-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

.dark .overview-section-title {
    color: #f5f5f7;
}

.overview-section-subtitle {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.45);
    font-weight: 500;
    margin-top: 3px;
}

.dark .overview-section-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

/* Count Badges - Apple Pill Style */
.overview-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.overview-count-badge:hover {
    transform: scale(1.03);
}

.matches-count {
    background: rgba(175, 82, 222, 0.12);
    color: #af52de;
}

.dark .matches-count {
    background: rgba(191, 90, 242, 0.15);
    color: #bf5af2;
}

.files-count {
    background: rgba(10, 132, 255, 0.12);
    color: #007aff;
}

.dark .files-count {
    background: rgba(10, 132, 255, 0.15);
    color: #0a84ff;
}

/* Section Body */
.overview-section-body {
    padding: 20px 24px 24px;
}

/* Matches List - Apple Style */
.overview-matches-list {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.overview-matches-list::-webkit-scrollbar {
    width: 6px;
}

.overview-matches-list::-webkit-scrollbar-track {
    background: transparent;
}

.overview-matches-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.dark .overview-matches-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.overview-matches-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

.dark .overview-matches-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Match Card - Apple-Style Design */
.match-card {
    background: #f5f5f7;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.dark .match-card {
    background: rgba(255, 255, 255, 0.05);
}

html:not(.dark) .match-card {
    background: #f5f5f7;
}

.match-card:hover {
    border-color: #007acc;
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.15);
    transform: translateY(-1px);
}

.dark .match-card:hover {
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.2);
}

html:not(.dark) .match-card:hover {
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.1);
}

.match-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.dark .match-index {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.match-score {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.match-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.match-type-internal {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.dark .match-type-internal {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.match-type-web {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dark .match-type-web {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.match-type-ai {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.dark .match-type-ai {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.match-filename {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .match-filename {
    color: #f1f5f9;
}

.match-source {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

.dark .match-source {
    color: #94a3b8;
}

/* Files Grid - Apple-inspired Clean Design */
.overview-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
}

.overview-files-grid::-webkit-scrollbar {
    width: 6px;
}

.overview-files-grid::-webkit-scrollbar-track {
    background: transparent;
}

.overview-files-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 8px;
}

.dark .overview-files-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
}

.overview-files-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.20);
}

.dark .overview-files-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.20);
}

/* File Card - VSCode-Style Clean Design */
.file-card {
    background: #2d2d30;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    padding: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.dark .file-card {
    background: #252526;
    border-color: #3c3c3c;
}

html:not(.dark) .file-card {
    background: #ffffff;
    border-color: #e5e7eb;
}

.file-card:hover {
    border-color: #007acc;
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.15);
    transform: translateY(-1px);
}

.dark .file-card:hover {
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.2);
}

html:not(.dark) .file-card:hover {
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.1);
}

.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .file-name {
    color: #f1f5f9;
}

.file-extension {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .file-extension {
    color: #94a3b8;
}

/* Empty States */
.overview-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.overview-empty-icon {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.matches-empty {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(168, 85, 247, 0.05));
    color: #8b5cf6;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.dark .matches-empty {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.1));
    color: #c4b5fd;
}

.files-empty {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.05));
    color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.dark .files-empty {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    color: #93c5fd;
}

.overview-empty-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dark .overview-empty-title {
    color: #f9fafb;
}

.overview-empty-text {
    font-size: 0.875rem;
    color: #6b7280;
    max-width: 320px;
}

.dark .overview-empty-text {
    color: #9ca3af;
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */
@media (max-width: 1280px) {
}

@media (max-width: 768px) {
    
    .overview-section-header {
        padding: 1.5rem 1.75rem;
    }
    
    .overview-section-body {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    
    .overview-files-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-icon-badge {
        width: 48px;
        height: 48px;
    }
    
    .overview-section-title {
        font-size: 1.125rem;
    }
    
    .match-score {
        font-size: 1.25rem;
    }
    
    .match-card,
    .file-card {
        padding: 0.875rem;
    }
}
