/* ========================================
   Typography System (Design Expert Harmonization)
   ======================================== */

:root {
    /* Font Families */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Courier New', 'SF Mono', Monaco, Consolas, monospace;

    /* Simplified Type Scale - Only 4 Sizes */
    --text-small: 0.75rem;    /* 12px - Metadata, badges, timestamps */
    --text-body: 0.875rem;    /* 14px - All body text, labels, navigation */
    --text-button: 1rem;      /* 16px - Buttons only */
    --text-heading: 1.125rem; /* 18px - Section headings */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-tight: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
}

/* ========================================
   Form Element Reset (Design Expert - Typography)
   ======================================== */

/* Force all form elements to use our typography system */
input,
select,
textarea,
button {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    line-height: var(--leading-normal);
}

/* Buttons specifically use --text-button */
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    font-size: var(--text-button);
    line-height: var(--leading-tight);
}

/* Labels use body text */
label {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    line-height: var(--leading-normal);
}

/* Headings use heading size */
h1, h2 {
    font-family: var(--font-primary);
    font-size: var(--text-heading);
    line-height: var(--leading-tight);
}

/* H3-H6 use body size (secondary headings) */
h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    line-height: var(--leading-tight);
}

/* ========================================
   Authentication Header Styles (Phase 3: Task Group 3.7)
   ======================================== */

/* Authentication Header */


/* Logo */
.logo a {
    color: #4CAF50;
    text-decoration: none;
    font-size: var(--text-heading);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    transition: color 0.2s ease;
}

.logo a:hover {
    color: #66BB6A;
}

/* Admin Nav Link (Header) */




/* Favorites Nav Link (Header) */



.favorites-icon {
    font-size: 1em;
}


/* Analytics Nav Link (Header) */



.analytics-icon {
    font-size: 1em;
}

/* Auth Menu Container */

/* Google Sign-In Button */


/* User Menu (when logged in) */

/* Profile Trigger (clickable area) */


/* Profile Picture */

/* Username Display */

/* Profile Dropdown */


/* Dropdown Items */




/* Dropdown Divider */

/* Admin Panel Link (in dropdown) */



/* Delete Account Button (in dropdown) */


/* Sign Out Button (in dropdown) */
.btn-logout {
    color: #e0e0e0;
}

/* Responsive Header - Mobile */
@media (max-width: 768px) {

    .logo a {
        font-size: var(--text-body);
    }









}

/* ========================================
   Page Content Container
   ======================================== */


.container-detail {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}




h1 {
    text-align: center;
}

#url-form {
    margin-bottom: 20px;
}

#youtube-url {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 3px;
    background-color: #2c2c2c;
    color: #ffffff;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: var(--text-body);
    font-family: var(--font-primary);
    line-height: var(--leading-normal);
}











button {
    padding: 10px 20px;
    border: none;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    font-size: var(--text-body);
    font-weight: var(--font-normal);
    line-height: var(--leading-tight);
    margin-top: 0;
}

button:hover {
    background-color: #45a049;
}

.hidden {
    display: none;
}

#results h2 {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-top: 25px;
}

#results h3 {
    color: #aaa;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: var(--text-body);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
}

.cache-badge {
    display: inline-block;
    background-color: #2196F3;
    color: white;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: var(--text-body);
    font-weight: var(--font-medium);
    line-height: var(--leading-tight);
    margin-bottom: 15px;
}





.rate-limit-label {
    font-weight: var(--font-bold);
    font-size: var(--text-body);
    line-height: var(--leading-tight);
    margin-right: 8px;
}

.rate-limit-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rate-limit-method {
    font-weight: var(--font-semibold);
    font-size: var(--text-body);
    line-height: var(--leading-tight);
    color: #4CAF50;
}

.rate-limit-divider {
    margin: 0 15px;
    color: #555;
}

.rate-limit-num-ok {
    color: #fff;
    font-weight: var(--font-semibold);
    font-size: var(--text-body);
    line-height: var(--leading-tight);
}

.rate-limit-num-warning {
    color: #FFC107;
    font-weight: var(--font-bold);
    font-size: var(--text-body);
    line-height: var(--leading-tight);
}

.rate-limit-num-exceeded {
    color: #f44336;
    font-weight: var(--font-bold);
    font-size: var(--text-body);
    line-height: var(--leading-tight);
}


.video-info-box {
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}



.sentiment-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.sentiment-block {
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 5px;
}

.sentiment-meter {
    margin: 12px 0;
}


.sentiment-bar {
    background-color: #1a1a1a;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.sentiment-fill {
    height: 100%;
    transition: width 0.5s ease, background-color 0.3s ease;
    border-radius: 10px;
}

.sentiment-fill.subjectivity {
    background-color: #9C27B0;
}

.sentiment-value {
    color: #aaa;
    font-size: var(--text-body);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    margin-top: 5px;
}

.sentiment-label-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.sentiment-label-row .sentiment-label {
    color: #888;
    font-size: var(--text-body);
    font-weight: var(--font-normal);
}

.sentiment-emoji {
    font-size: var(--text-heading);
    margin-right: 8px;
    line-height: 1;
}

.sentiment-interpretation {
    font-size: var(--text-small);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: #aaa;
    margin-top: 3px;
    font-style: italic;
}

@media (max-width: 768px) {
    .sentiment-section {
        grid-template-columns: 1fr;
    }
}

/* Results Page Styles */
.results-header {
    position: relative;
    margin-bottom: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.results-header h1 {
    text-align: left;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.title-row h1 {
    flex: 1;           /* Allow title to grow and take available space */
    min-width: 0;      /* Critical: allows text to wrap in flex containers */
    margin: 0;         /* Remove default h1 margin for cleaner layout */
}

.btn-analyze-inline {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: var(--text-small);
    padding: 8px 16px;
    width: auto;       /* Override default button width: 100% */
}

.back-button {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-size: var(--text-body);
    font-weight: var(--font-medium);
    line-height: var(--leading-tight);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #45a049;
}

.info-badge {
    background-color: #2c2c2c;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    color: #aaa;
    font-size: var(--text-body);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
}

/* Video Thumbnail Section */
.video-thumbnail-section {
    margin: 20px 0;
}

.thumbnail-container {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}





.results-section {
    
}

.results-section h2 {
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #4CAF50;
}

.content-box {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 5px;
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
}

.content-box p {
    margin: 0;
    color: #fff;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comments-list li {
    padding: 12px;
    margin-bottom: 10px;
    background-color: #1a1a1a;
    border-left: 3px solid #4CAF50;
    border-radius: 3px;
    color: #fff;
}







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

.error-container {
    text-align: center;
    padding: 40px 20px;
}

.error-message {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #f44336;
}

.error-message p {
    color: #f44336;
    font-size: var(--text-body);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    margin: 0;
}

/* Library Page Styles */
/* Forms Container - Three Column Layout */

@media (max-width: 1280px) {
}

@media (max-width: 768px) {
}





/* Settings toggle button (gear icon) */


/* Settings collapsible section */


/* Active Filter Bar (Landing Page) */
.active-filter-bar {
    margin-bottom: 15px;
    padding: 10px;
}






/* View Toggle Container */
.view-toggle-container {
    margin-top: 30px;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    min-height: 48px;
}

.view-toggle-container h2 {
    margin: 0;
    color: #4CAF50;
    font-size: var(--text-heading);
    font-weight: var(--font-semibold);
    line-height: 1;
    display: flex;
    align-items: center;
    height: 36px;
}

/* View Toggle Left/Right Containers */
.view-toggle-left {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 36px;
}

.view-toggle-right {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 36px;
}

.view-toggle-buttons {
    display: flex;
    gap: 5px;
    background-color: transparent;
    padding: 0;
    height: 36px;
}





/* Library Controls (View Toggle + Date Filter) */
.library-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Date Filter Dropdown */
.date-filter-container {
    position: relative;
}







.date-filter-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    min-width: 160px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    /* display: none; - Removed: Alpine.js x-show handles visibility */
}

.date-filter-dropdown.show {
    display: block;
}

.date-filter-dropdown .filter-option {
    display: block;
    padding: 10px 15px;
    color: #aaa;
    text-decoration: none;
    font-size: var(--text-body);
    transition: all 0.2s ease;
    border-bottom: 1px solid #2a2a2a;
}

.date-filter-dropdown .filter-option:last-child {
    border-bottom: none;
}

.date-filter-dropdown .filter-option:hover {
    background-color: #2c2c2c;
    color: #fff;
}

.date-filter-dropdown .filter-option.active {
    background-color: #2c2c2c;
    color: #4CAF50;
}

.library-section {
    margin-top: 30px;
}

.library-view {
    margin-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    color: #4CAF50;
}
























/* Tooltip Styles */
.tooltip-trigger {
    position: relative;
    cursor: help;
    color: #888;
    transition: color 0.2s ease;
    display: inline-block;
    margin-left: 5px;
}

.tooltip-trigger:hover {
    color: #4CAF50;
}

.tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #4CAF50;
    font-size: var(--text-small);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    max-width: 250px;
    white-space: normal;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 5px;
}

.tooltip-trigger:hover::after {
    opacity: 1;
}

/* Transcript Styles */
.transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}




/* Transcript Actions Container */
.transcript-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
}

/* Download Button */



.transcript-box {
    margin-bottom: 20px;
}

.transcript-box .transcript-header h3 {
    margin: 0;
    color: #aaa;
    font-size: var(--text-body);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
}

.transcript-details {
    margin-bottom: 20px;
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 5px;
}

.transcript-details summary {
    cursor: pointer;
    color: #fff;
    font-size: var(--text-body);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    margin-bottom: 15px;
    user-select: none;
}

.transcript-details[open] summary {
    margin-bottom: 10px;
}

.transcript-details .transcript-header {
    margin-top: 10px;
    justify-content: flex-end;
}

.transcript-info {
    margin-top: 10px;
    color: #888;
    font-size: var(--text-small);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    font-style: italic;
}

/* Row-Based Video Library Styles */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}



.row-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.row-video-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.row-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.row-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.row-video-title {
    margin: 0;
    font-size: var(--text-heading);
    font-weight: var(--font-semibold);
    color: #fff;
    line-height: var(--leading-tight);
}

.row-video-channel {
    color: #4CAF50;
    font-size: var(--text-body);
    font-weight: var(--font-medium);
    line-height: var(--leading-tight);
    text-decoration: none;
}

.row-video-channel.channel-link:hover {
    text-decoration: underline;
    color: #66BB6A;
}

.row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #aaa;
    font-size: var(--text-body);
    font-weight: var(--font-normal);
    line-height: var(--leading-tight);
}

.row-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.row-meta-item .meta-label {
    color: #888;
    font-weight: var(--font-normal);
    line-height: var(--leading-tight);
}

.row-meta-divider {
    color: #666;
}

.row-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.row-sentiment {
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-analyzed {
    font-weight: var(--font-normal);
    line-height: var(--leading-tight);
    color: #888;
}

/* Table-Based Video Library Styles (For Nerds) */
















/* Column-specific styles */



















@media (max-width: 768px) {







    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .method-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }


    /* Row layout mobile adjustments */

    .row-thumbnail {
        width: 100%;
    }

    .row-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Table view mobile adjustments */





    /* View toggle mobile adjustments */
    .view-toggle-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-toggle-buttons {
        width: 100%;
        justify-content: center;
    }


    /* Date filter mobile adjustments */
    .library-controls {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .date-filter-container {
        width: 100%;
    }


    .date-filter-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }
}

/* ========================================
   Enhanced Metadata Styles (October 2025)
   ======================================== */

/* Keywords Container */
.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.keywords-item {
    flex-direction: column;
    align-items: flex-start;
}

/* Keyword Tags (Compact) */
.keyword-tag {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: var(--font-medium);
    line-height: var(--leading-tight);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(118, 75, 162, 0.2);
    transition: all 0.2s ease;
}

.keyword-tag:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(118, 75, 162, 0.3);
}

/* Clickable Keywords (Video Detail Page) */
.keyword-tag.keyword-link {
    text-decoration: none;
    cursor: pointer;
}

.keyword-tag.keyword-link:hover {
    opacity: 1;
    background: linear-gradient(135deg, #7c8ff0 0%, #8b5ab8 100%);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(118, 75, 162, 0.4);
}

/* Channel ID Styling */
.channel-id {
    font-family: var(--font-mono);
    font-size: var(--text-small);
    font-weight: var(--font-normal);
    line-height: var(--leading-tight);
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Likes Styling */
.likes {
    font-weight: var(--font-semibold);
    font-size: var(--text-body);
    line-height: var(--leading-tight);
    color: #e91e63;
}

/* Like Ratio (Engagement Percentage) */
.like-ratio {
    font-size: var(--text-small);
    font-weight: var(--font-normal);
    line-height: var(--leading-tight);
    color: #888;
    margin-left: 8px;
}

/* Mobile responsiveness for keywords */
@media (max-width: 768px) {
    .keyword-tag {
        font-size: var(--text-small);
        padding: 3px 10px;
    }

    .keywords-container {
        gap: 6px;
    }
}

/* ========================================
   Footer Styles (Phase 2: Feature 004)
   ======================================== */

/* Footer Container */
.footer {
    background-color: transparent;
    color: #e0e0e0;
    padding: 0 1rem;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Content - Single Row Layout */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #1e1e1e;
    border-radius: 8px;
    border-top: 2px solid #333;
}

/* Footer Links - Centered */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: var(--text-small);
    font-weight: var(--font-normal);
    line-height: var(--leading-tight);
    white-space: nowrap;
}

.footer-links a:hover {
    color: #aaa;
}

/* Footer Copyright */
.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: #666;
    font-size: var(--text-small);
    font-weight: var(--font-normal);
    line-height: var(--leading-tight);
    margin: 0;
}

/* Footer Separator */
.footer-separator {
    color: #666;
    font-size: var(--text-small);
}

/* Responsive Footer - Mobile (<768px) */
@media (max-width: 768px) {
    .footer {
        margin-top: 20px;
    }

    .footer-content {
        padding: 15px 20px;
        gap: 10px;
        flex-direction: column;  /* Stack vertically on mobile */
    }

    .footer-separator {
        display: none;  /* Hide separator on mobile */
    }

    .footer-links {
        gap: 0.75rem;
    }
}

/* ========================================
   Description Styles
   ======================================== */

/* Description links - Green like table links */
.description-link {
    color: #4CAF50;
    text-decoration: none;
    transition: all 0.2s ease;
}

.description-link:hover {
    text-decoration: underline;
    color: #66BB6A;
}

/* Inline "...more" link for descriptions */
.description-more-link {
    color: #4CAF50;
    text-decoration: none;
    font-size: var(--text-body);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    cursor: pointer;
    transition: color 0.2s ease;
}

.description-more-link:hover {
    color: #66BB6A;
    text-decoration: underline;
}

/* ========================================
   Processing Console Styles (Terminal-like)
   ======================================== */

.processing-console {
    margin-top: 20px;
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}






/* Custom scrollbar for console */




/* Console Log Entry */
.console-log {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeInLog 0.3s ease;
}

@keyframes fadeInLog {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.console-timestamp {
    color: #666;
    font-size: var(--text-small);
    white-space: nowrap;
    font-family: var(--font-mono);
}

.console-message {
    flex: 1;
    color: #e0e0e0;
    word-wrap: break-word;
    font-family: var(--font-mono);
}

/* Log Level Colors */
.console-log.info .console-message {
    color: #4CAF50;
}

.console-log.success .console-message {
    color: #66BB6A;
    font-weight: var(--font-semibold);
}

.console-log.warning .console-message {
    color: #FFC107;
}

.console-log.error .console-message {
    color: #f44336;
    font-weight: var(--font-semibold);
}

.console-log.debug .console-message {
    color: #888;
}

/* Loading Spinner Animation */
.console-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #333;
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Empty console state */
.console-empty {
    color: #666;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    font-family: var(--font-primary);
}

/* Mobile responsiveness */
@media (max-width: 768px) {


    .console-timestamp {
        font-size: 10px;
    }
}

/* ========================================
   VIDEO DETAIL PAGE - ROW-BASED LAYOUT
   ======================================== */

/* Row containers */
.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 split by default */
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 1rem auto;
    padding: 0 1rem;
    align-items: start;
}

.row-video-info {
    align-items: stretch;
}

/* Single column rows */
.detail-col-full {
    grid-column: 1 / -1;
}

/* Individual columns */
.detail-col {
    min-width: 0; /* Prevents grid blowout */
}

.row-desc-sentiment .detail-col {
    display: flex;
    flex-direction: column;
}

.row-desc-sentiment .detail-col .results-section {
    display: flex;
    flex-direction: column;
}

.row-desc-sentiment .detail-col .content-box {
    flex: 1 1 auto;
}

/* Stacked column for sentiment + keywords */
.detail-col-stacked {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.detail-col-stacked .results-section {
    margin-bottom: 0;
    flex: 0 0 auto;
}

/* Responsive YouTube Embed */
.video-embed-responsive {
    position: relative;
    padding-bottom: 48%; /* Adjusted to match video info box height */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Match video info box height with video embed */
.row-video-info .detail-col:first-child {
    display: flex;
    flex-direction: column;
}

.row-video-info .detail-col:last-child {
    display: flex;
    flex-direction: column;
}

/* Mobile: Single column layout */
@media (max-width: 768px) {
    .detail-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
}

/* Tablet: Keep 50/50 split */
@media (min-width: 769px) and (max-width: 1024px) {
    .detail-row {
        gap: 1.5rem;
    }
}

/* ========================================
   SIMPLE SENTIMENT DISPLAY
   ======================================== */

.sentiment-simple {
    background: #2c2c2c;
    padding: 1rem;
    border-radius: 8px;
}

/* ========================================
   PAGINATION STYLES
   ======================================== */


.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--space-xs);
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    display: inline-block;
}

.pagination-link {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    min-width: 40px;
    text-align: center;
    color: #aaa;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: var(--text-body);
    font-weight: var(--font-medium);
    transition: all 0.2s ease;
}

.pagination-link:hover:not(.disabled-link):not(.current-page) {
    background: var(--hover-color);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-1px);
}

.pagination-item.active .pagination-link,
.pagination-link.current-page {
    background: var(--accent-blue);
    color: var(--dark-bg);
    border-color: var(--accent-blue);
    font-weight: var(--font-semibold);
}

.pagination-link.disabled-link {
    opacity: 0.4;
    cursor: not-allowed;
    color: #666;
}

.pagination-ellipsis {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    color: #666;
    font-size: var(--text-body);
}

.pagination-info {
    color: #888;
    font-size: var(--text-caption);
    text-align: center;
    margin-top: var(--space-xs);
}

/* Responsive pagination */
@media (max-width: 640px) {
    .pagination-link {
        padding: var(--space-xs);
        min-width: 36px;
        font-size: var(--text-caption);
    }

    .pagination-info {
        font-size: 11px;
    }
}

/* ========================================
   Playlist Import Styles
   ======================================== */

.playlist-import-section {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.playlist-import-section h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.section-description {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
    font-size: var(--text-body);
}


.loading-indicator {
    margin-left: 1rem;
    color: var(--text-secondary);
    font-size: var(--text-caption);
}

/* Playlist Results */
#playlist-results {
    margin-top: 2rem;
}

.playlist-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--surface-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.playlist-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.playlist-info {
    flex: 1;
}

.playlist-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.playlist-meta {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-body);
}

/* Playlist Actions */
.playlist-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}



.rate-limit-status {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: var(--text-caption);
    white-space: nowrap;
}

/* Video Selection Controls */
.video-selection-controls {
    margin-bottom: 1rem;
}

.select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
}

.select-all-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Playlist Video Grid */
.playlist-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.playlist-video-card {
    position: relative;
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.playlist-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-checkbox-label {
    display: block;
    cursor: pointer;
    position: relative;
}

.video-checkbox {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 10;
    accent-color: var(--primary-color);
}


.playlist-video-card .video-title {
    padding: 0.75rem;
    font-size: var(--text-caption);
    line-height: 1.3;
    color: var(--text-primary);
    height: 3.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Progress Modal */



/* Progress Bar */



/* Video Status List */







@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

    .playlist-thumb {
        margin: 0 auto;
    }

    .playlist-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rate-limit-status {
        margin-left: 0;
        text-align: center;
    }

    .playlist-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }


}

/* ============================================
   Analysis Modal (Unified for Single Video + Playlist)
   ============================================ */

/* Modal Container */

/* Modal Backdrop */

/* Modal Dialog */

/* Modal Header */



/* Modal Body */

/* Console Container */



/* Log Entries */





/* Modal Footer */


/* Mobile Responsive - Analysis Modal */
@media (max-width: 768px) {




}

/* ========================================
   Channel Detail Page Styles
   ======================================== */

/* Channel Header */
.channel-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 8px;
    margin-bottom: 20px;
}

.channel-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-info h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #ffffff;
}

.channel-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
}





.channel-stats {
    color: #aaaaaa;
    font-size: 14px;
    margin: 5px 0;
}

.channel-description {
    color: #cccccc;
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.5;
}

.channel-meta {
    color: #888888;
    font-size: 12px;
    margin-top: 10px;
}

.channel-meta .refresh-link {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.channel-meta .refresh-link:hover {
    color: #6bb3ff;
    text-decoration: underline;
}

/* Channel Header with Filter Buttons Layout */
.channel-header-with-filters {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.channel-header-with-filters .channel-header {
    flex: 1;
    padding: 0;
    background: transparent;
    margin-bottom: 0;
}

/* Filter Buttons Sidebar (Right-aligned) */
.channel-filters-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
    width: 150px;
}




/* Context Banner */
.context-banner {
    background: #2a2a2a;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.context-banner p {
    margin: 5px 0;
    color: #cccccc;
    font-size: 14px;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}




/* Batch Selection Toolbar */
.batch-toolbar {
    background: #2a2a2a;
    border: 1px solid #4a9eff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.15);
}

.batch-toolbar-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.batch-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.batch-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.batch-checkbox-label {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.selection-count {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

/* Video Checkboxes - Grid View */
.video-checkbox-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.video-checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-checkbox-container:hover {
    background: rgba(59, 130, 246, 0.8);
    transform: scale(1.1);
}

.video-select-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2a2a2a;
    background-color: #1a1a1a;
    border: 2px solid #444;
    border-radius: 3px;
}

.video-select-checkbox:checked {
    accent-color: #2a2a2a;
    background-color: #2a2a2a;
    border-color: #666;
}


/* Video Checkboxes - Row View */


/* Video Checkboxes - Table View */
.col-select {
    width: 50px;
    text-align: left;
    padding: 12px !important;
}

.col-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a9eff;
}

/* Timeline Sections */





/* Reference Card */







/* Video Card for Channel Detail */








/* Load More Container */


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

    .channel-thumbnail {
        width: 100px;
        height: 100px;
    }



    .filter-buttons {
        justify-content: center;
    }
}

/* Channel Discovery Section */
.channel-discovery-section {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border: 1px solid #333333;
    padding: 24px;
    border-radius: 8px;
    margin-top: 20px;
}

.channel-discovery-section h2 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: var(--font-medium);
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.channel-discovery-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.channel-discovery-buttons .btn {
    padding: 12px 24px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

/* Timeline Button */


/* Legacy: Keep override for backwards compatibility */


.discovery-hint {
    color: #888888;
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

.row-channel-discovery {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .channel-discovery-buttons {
        flex-direction: column;
    }

    .channel-discovery-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Transcript Button Styles (Video Detail Page) */


.transcript-btn-link {
    text-align: center;
}

.transcript-container {
    margin-top: 20px;
}

/* Transcript Button Styles (Table View) */
.transcript-actions-inline {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}






/* Hide less critical columns to reduce table width */

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-page {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
    color: #e0e0e0;
}

.contact-content h1 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: var(--text-heading);
    font-weight: var(--font-bold);
}

.contact-intro {
    color: #aaa;
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    margin-bottom: 30px;
}












textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Validation Feedback Styles (HTMX Real-time Validation) */
.validation-feedback {
    margin-top: 8px;
    min-height: 24px;
    font-size: 14px;
    display: block;
}

.validation-error {
    color: #ef5350;
    font-weight: 500;
}

.validation-warning {
    color: #ffa726;
    font-weight: 500;
}

.validation-success {
    color: #66bb6a;
    font-weight: 500;
}

.validation-hint {
    color: #999;
    font-size: 13px;
}









.contact-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #333;
}

.contact-info h2 {
    color: #4CAF50;
    font-size: var(--text-heading);
    font-weight: var(--font-semibold);
    margin-bottom: 15px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #e0e0e0;
    font-size: var(--text-body);
}

.contact-info li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.contact-info strong {
    color: #ffffff;
    font-weight: var(--font-semibold);
}

.contact-info a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #66BB6A;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-content {
        padding: 20px;
    }

    .contact-page {
        margin: 20px auto;
    }

}

/* ============================================
   ADMIN DASHBOARD STYLES
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #2c2c2c;
    padding: 25px;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    border: 1px solid #444;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #4CAF50;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.stat-icon {
    font-size: 3em;
    margin-right: 20px;
    opacity: 0.7;
    filter: grayscale(20%);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2.5em;
    font-weight: var(--font-bold);
    margin-bottom: 5px;
    color: #4CAF50;
}

.stat-label {
    font-size: var(--text-small);
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: var(--font-medium);
}

.dashboard-section {
    margin-bottom: 30px;
}

.dashboard-section h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: var(--text-heading);
    font-weight: var(--font-semibold);
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}










/* Note: Base .btn styles defined earlier in the file (line ~918) */

.btn-info {
    background: #2c2c2c;
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.btn-info:hover {
    background: #4CAF50;
    color: white;
}


/* Removed duplicate .info-item with green bar - using simple text style from line 700 instead */



@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        font-size: 2em;
        margin-right: 15px;
    }

    .stat-value {
        font-size: 2em;
    }
}

/* ============================================
   ANALYTICS PAGE STYLES
   ============================================ */
.analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}


.summary-value {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: var(--text-body);
    color: #e0e0e0;
    font-weight: var(--font-medium);
}

.summary-subtitle {
    font-size: var(--text-small);
    color: #999;
    margin-top: 0.25rem;
}

.analytics-table-container {
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1.5rem;
}

.analytics-table-container h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #4CAF50;
    font-size: var(--text-heading);
    font-weight: var(--font-semibold);
}





.text-right {
    text-align: right;
}

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



.percentage {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: var(--text-small);
    font-weight: var(--font-medium);
}

.percentage.high {
    background-color: rgba(76, 175, 80, 0.2);
    color: #66BB6A;
}

.percentage.medium {
    background-color: rgba(255, 193, 7, 0.2);
    color: #FFB300;
}

.percentage.low {
    background-color: rgba(244, 67, 54, 0.2);
    color: #EF5350;
}








/* ============================================
   LEGAL PAGES STYLES (Terms, Privacy)
   ============================================ */
.legal-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.legal-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
    line-height: 1.6;
    color: #e0e0e0;
}

.legal-content h1 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: var(--text-heading);
    font-weight: var(--font-bold);
}

.updated-date {
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
    font-size: var(--text-small);
}

.legal-content section {
    margin-bottom: 30px;
}

.legal-content h2 {
    color: #4CAF50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: var(--text-heading);
    font-weight: var(--font-semibold);
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
}

.legal-content h3 {
    color: #e0e0e0;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: var(--text-body);
    font-weight: var(--font-medium);
}

.legal-content p {
    color: #e0e0e0;
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 10px;
    color: #e0e0e0;
    font-size: var(--text-body);
}

.legal-content strong {
    color: #ffffff;
    font-weight: var(--font-semibold);
}

.legal-content a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: #66BB6A;
    text-decoration: underline;
}

.legal-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.legal-footer a {
    margin: 0 10px;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 20px;
    }

    .legal-page {
        margin: 20px auto;
    }
}


/* Alpine.js - Prevent flash of unstyled content */
[x-cloak] {
    display: none !important;
}


/* Button State Classes - Utility classes for dynamic button states */
.btn-loading {
    background-color: #9ca3af !important; /* Gray */
    cursor: not-allowed !important;
}

.btn-error {
    background-color: #ef4444 !important; /* Red */
    cursor: pointer !important;
}

.btn-success {
    background-color: #10b981 !important; /* Green */
}

/* Element State Classes - Utility classes for dynamic element states */
.disabled-state {
    opacity: 0.5 !important;
}

.enabled-state {
    opacity: 1 !important;
}

.hidden {
    display: none !important;
}


/* Toast Notifications - Unified notification system */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background: #2a2a2a;
    border-left: 4px solid #4a9eff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(400px);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: #fff;
    font-size: var(--text-body);
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #fff;
}

/* Toast variants */
.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-info {
    border-left-color: #4a9eff;
}

@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}


/* Confirmation Modal - Unified confirmation system */
.confirm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-backdrop-show {
    opacity: 1;
}

.confirm-backdrop-hide {
    opacity: 0;
}

.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    opacity: 0;
    transition: all 0.2s ease;
}

.confirm-modal-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.confirm-modal-hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

.confirm-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #444;
}

.confirm-title {
    margin: 0;
    font-size: var(--text-heading);
    font-weight: var(--font-bold);
    color: #fff;
}

.confirm-body {
    padding: 24px;
}

.confirm-message {
    margin: 0;
    font-size: var(--text-body);
    line-height: 1.6;
    color: #ccc;
}

.confirm-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: var(--text-button);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-btn-cancel {
    background: #444;
    color: #fff;
}

.confirm-btn-cancel:hover {
    background: #555;
}

.confirm-btn-confirm {
    background: #4a9eff;
    color: #fff;
}

.confirm-btn-confirm:hover {
    background: #3a8eef;
}

.confirm-btn-confirm:focus,
.confirm-btn-cancel:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

/* Button variants for confirmation modal */
.confirm-btn.btn-danger {
    background: #ef4444;
}

.confirm-btn.btn-danger:hover {
    background: #dc2626;
}

.confirm-btn.btn-success {
    background: #10b981;
}

.confirm-btn.btn-success:hover {
    background: #059669;
}

@media (max-width: 768px) {
    .confirm-modal {
        width: 95%;
        max-width: none;
    }

    .confirm-footer {
        flex-direction: column-reverse;
    }

    .confirm-btn {
        width: 100%;
    }
}


/* Video Search Input */


/* Batch Analyze Inline Button */



