:root {
    --background: #ffffff;
    --foreground: #171717;
    
    /* Colors from provided palette */
    --grey-50: #F9FAF9;
    --grey-100: #F4F4F3;
    --grey-200: #E5E6E4;
    --grey-300: #D4D5D2;
    --grey-400: #C5C7C3;
    --grey-500: #B7B9B4;
    --grey-600: #929490;
    --grey-700: #6F706D;
    --grey-800: #585956;
    --grey-900: #333431;
    --grey-1000: #222222;
    
    --green-primary: #0f71fd;
    --green-hover: #0c5fd6;
    --green-light: #7ab3fd;
    
    --moss-50: #f0f6ff;
    --moss-100: #e0edff;
    
    /* System Colors */
    --success: #0f71fd;
    --warning: #FFB72E;
    --error: #F44336;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.5;
}

/* Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    background: transparent;
    color: var(--grey-900);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button:hover:not(:disabled) {
    border-color: #0f71fd;
    color: #0f71fd;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button.active {
    background: var(--green-primary);
    color: white;
    border-color: var(--green-primary);
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.checkbox-input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--grey-300);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: white;
}

.checkbox-input:checked {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-input:disabled {
    background: var(--grey-100);
    border-color: var(--grey-300);
    cursor: not-allowed;
}

/* Search Styles */
/* Search Container Styles */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Search Box Styles */
.search-box {
    position: relative;
    width: 100%;
    border: none;
    border-bottom: 2px solid #0f71fd;
    background: white;
}

#searchInput {
    width: 100%;
    padding: 12px 32px 12px 36px;
    border: none;
    font-size: 14px;
    line-height: 1.5;
    color: #171717;
    background: transparent;
}

#searchInput::placeholder {
    color: #929490;
}

#searchInput:focus {
    outline: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #929490;
    font-size: 14px;
}

.clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px;
    color: #929490;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    display: none;
    z-index: 1000;
}

.suggestions-dropdown.show {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #F4F4F3;
}

.suggestion-item i {
    color: #929490;
    font-size: 14px;
}

.suggestion-text {
    color: #171717;
    font-size: 14px;
}

/* When input is not empty, show the clear button */
#searchInput:not(:placeholder-shown) + .clear-search {
    display: flex;
}



/* Search Container with Dropdown */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-with-dropdown {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

/* Dropdown Styles */
.search-type-dropdown {
    position: relative;
    margin-right: 8px;
}

.dropdown-button {
    background: transparent;
    border: none;
    padding: 8px;
    color: #929490;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: none;
    z-index: 1000;
}

.dropdown-content.show {
    display: block;
}

.dropdown-option {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #171717;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-option:hover {
    background: #F4F4F3;
}

/* Search Box Styles */


#searchInput {
    width: 100%;
    padding: 12px 32px 12px 36px;
    border: none;
    font-size: 14px;
    line-height: 1.5;
    color: #171717;
    background: transparent;
}

#searchInput::placeholder {
    color: #929490;
}

#searchInput:focus {
    outline: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #929490;
    font-size: 14px;
}

.clear-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px;
    color: #929490;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search i {
    font-size: 14px;
}

#searchInput:not(:placeholder-shown) + .clear-search {
    display: flex;
}

/* Selected Option Display */
.selected-option {
    font-weight: 500;
    color: #0f71fd;
}





/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--grey-200);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--green-primary);
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

/* Hero Section */
.hero {
    padding: 100px 24px 40px;
    background: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: 12px;
}

.hero p {
    font-size: 16px;
    color: var(--grey-700);
    margin-bottom: 32px;
}

/* Results Section */
.results-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--grey-200);
}

.results-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.clear-results-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--grey-500);
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.clear-results-btn:hover {
    background: var(--grey-100);
    color: var(--grey-700);
    border-color: var(--grey-400);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 24px;
}

.result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.confidence-badge.high {
    background: var(--success);
    color: white;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--grey-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--grey-200);
    display: flex;
    justify-content: flex-end;
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 0;
}

.spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 16px;
}

.spinner p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Action Button Styles */
.action-button-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.action-button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
    transition: background-color 0.2s ease;
}

/* Normal state */
.action-button {
    background-color: #0f71fd;
    color: white;
}

/* Active/Hover state */
.action-button:hover:not(:disabled),
.action-button.active {
    background-color: #0c5fd6;
    color: white;
}

/* Disabled state */
.action-button:disabled {
    background-color: #F4F4F3;
    color: #929490;
    cursor: not-allowed;
}

/* Loading state */
.action-button.loading {
    background-color: #F4F4F3;
    color: #929490;
    cursor: wait;
}

/* Loading spinner */
.button-spinner {
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #929490;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: none;
}

.action-button.loading .button-spinner {
    display: block;
}

.action-button.loading .button-text,
.action-button.loading .button-icon {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--grey-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--grey-900);
    margin: 0;
}

.close-button {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--grey-500);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.analysis-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
}

.analysis-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.analysis-text {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.analysis-text h3 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-text h3 i {
    color: #0284c7;
}

.analysis-paragraph {
    color: var(--grey-700);
    line-height: 1.6;
    margin-bottom: 16px;
}

.analysis-paragraph:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--grey-200);
    display: flex;
    justify-content: flex-end;
    background: white;
}

/* Add these styles to style.css */

.download-button {
    position: relative;
    padding: 8px 24px;
    background: #0f71fd;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.download-button:disabled {
    background: var(--grey-300);
    cursor: not-allowed;
}

.download-button:not(:disabled):hover {
    background: var(--green-hover);
    transform: translateY(-1px);
}

.download-button .button-content,
.download-button .button-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-button .button-loader {
    color: rgba(255, 255, 255, 0.8);
}

.download-button .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-button:not(:disabled):hover {
    background: var(--green-hover);
}

/* Error Message Styling */

.error-message {
    text-align: center;
    padding: 48px 24px;
    background: #fef2f2;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}


.error-message i {
    font-size: 48px;
    color: #dc2626;
}

/* Spinner Styling */
.spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


.error-message {
    text-align: center;
    padding: 32px;
    background: #fef2f2;
    border-radius: 8px;
    color: #dc2626;
}

.error-message i {
    font-size: 32px;
    margin-bottom: 16px;
}

.error-message p {
    color: #991b1b;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.retry-btn i {
    font-size: 1rem;
}
.analysis-paragraph {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #374151;
}

.video-section {
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.video-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fef2f2;
    color: #dc2626;
}

.analysis-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analysis-paragraph {
    color: #334155;
    line-height: 1.7;
    font-size: 1rem;
}


.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 24px;
}

.result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}


.result-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}




.time-highlight {
    position: absolute;
    height: 4px;
    background: #0f71fd;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}


.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.result-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #dc2626;
    background: #fef2f2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    z-index: 5;
}
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f3f4f6;
    color: #666;
}

.video-placeholder i {
    font-size: 24px;
}

.confidence-badge,
.score-badge {
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.confidence-badge.confidence-high {
    color: #0f71fd;  /* Green theme color */
}

.confidence-badge.confidence-medium {
    color: #f59e0b;
}

.score-badge {
    color: #0f71fd;  /* Green theme color */
}

.result-video-container.loading {
    background: #f3f4f6;
}

.result-content {
    padding: 16px;
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
}


.analyze-btn {
    width: 100%;
    padding: 12px;
    background: #0f71fd;  /* Green theme color */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.analyze-btn:hover {
    background: #0f71fd;  /* Darker green for hover */
    transform: translateY(-1px);
}

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

/* Loading states */
.result-video-container.loading {
    background: #f3f4f6;
}


.result-video-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(243, 244, 246, 0) 0%,
        rgba(243, 244, 246, 0.9) 50%,
        rgba(243, 244, 246, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


.indexed-videos {
    max-width: 1200px;
    margin: 48px auto;
    padding: 0 24px;
}

.indexed-videos-header {
    text-align: center;
    margin-bottom: 32px;
}

.indexed-videos-header h2 {
    font-size: 28px;
    color: var(--grey-900);
    margin-bottom: 12px;
    font-weight: 600;
}

.indexed-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.indexed-video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.indexed-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.indexed-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--grey-900);
    overflow: hidden;
}

.indexed-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.indexed-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.indexed-video-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.indexed-video-name {
    color: var(--grey-900);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.indexed-analyze-btn {
    width: 100%;
}

.no-videos-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: var(--grey-50);
    border-radius: 12px;
}

.no-videos-message i {
    font-size: 48px;
    color: var(--grey-400);
    margin-bottom: 16px;
}

.no-videos-message h3 {
    color: var(--grey-900);
    font-size: 20px;
    margin-bottom: 8px;
}

.no-videos-message p {
    color: var(--grey-700);
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 16px 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    background: white;
    color: var(--grey-700);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.pagination-btn.active {
    background: var(--green-primary);
    color: white;
    border-color: var(--green-primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: var(--grey-500);
    font-size: 14px;
    padding: 0 4px;
}

.pagination-page-info {
    color: var(--grey-700);
    font-size: 14px;
    font-weight: 500;
    padding: 0 8px;
}

.highlight {
    color: var(--green-primary);
    font-weight: 500;
}

.confidence-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.confidence-badge i {
    font-size: 14px;
}

.confidence-high {
    color: #0f71fd;
}

.confidence-medium {
    color: #f59e0b;
}


.no-results {
    text-align: center;
    padding: 48px 24px;
    background: var(--grey-50);
    border-radius: 12px;
    margin: 24px;
}

.no-results i {
    font-size: 48px;
    color: var(--grey-400);
    margin-bottom: 16px;
}

.no-results h3 {
    color: var(--grey-900);
    font-size: 24px;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--grey-700);
    font-size: 16px;
}

@media (max-width: 768px) {
    .indexed-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .indexed-videos-header h2 {
        font-size: 24px;
    }
}


/* Loading placeholder for video */
.result-video-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(229, 231, 235, 0.8) 25%,
        rgba(209, 213, 219, 0.8) 50%,
        rgba(229, 231, 235, 0.8) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        padding: 12px 16px;
    }
    
    .hero {
        padding: 80px 16px 32px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .search-container {
        padding: 12px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 16px;
    }

    .results-header-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .clear-results-btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 16px;
    }
}

.upload-progress {
    padding: 32px;
    text-align: center;
}

.upload-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-icon {
    font-size: 48px;
    color: var(--green-primary);
}

.upload-filename {
    font-size: 14px;
    color: var(--grey-700);
    word-break: break-all;
}

.progress-bar-container {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: var(--grey-200);
    border-radius: 4px;
    overflow: hidden;
}

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

.upload-status {
    font-size: 14px;
    color: var(--grey-700);
}

.upload-status.success {
    color: var(--green-primary);
    font-weight: 500;
}

.upload-status.error {
    color: var(--error);
    font-weight: 500;
}