/* ============================================
   SAMPLE FILES - Modern Stylesheet
   Dark Mode Support | Light Mode Default
   Lucide Icons | Download Button First
   Icon-only Copy Button | No border-left
   ============================================ */

/* CSS Variables - Light Mode (Default) */
:root {
    --transition-speed: 0.25s;
    
    /* Primary Colors */
    --primary: #3498db;
    --primary-light: #ebf5fb;
    --primary-dark: #2980b9;
    --accent: #2ecc71;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    
    /* Format Colors */
    --color-avif: #8E44AD;
    --color-bmp: #03A9F4;
    --color-gif: #E91E63;
    --color-heic: #009688;
    --color-heif: #00796B;
    --color-ico: #FF9800;
    --color-jpg: #FF5722;
    --color-png: #4CAF50;
    --color-svg: #673AB7;
    --color-tif: #607D8B;
    --color-webp: #9C27B0;
    
    /* Background Colors */
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    
    /* Text Colors */
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-light: rgba(96, 165, 250, 0.15);
    --primary-dark: #3b82f6;
    --accent: #4ade80;
    --success: #4ade80;
    --success-light: rgba(74, 222, 128, 0.15);
    --warning: #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.15);
    --danger: #f87171;
    --danger-light: rgba(248, 113, 113, 0.15);
    
    --bg: #0f172a;
    --bg-elevated: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border: #334155;
    --border-light: #475569;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.5);
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Container */
.container {
    max-width: 1000px !important;
    margin: 0 auto;
    padding: 2rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs a svg,
.breadcrumbs a i {
    width: 16px;
    height: 16px;
}

.breadcrumbs .separator {
    color: var(--text-muted);
}

.breadcrumbs .separator svg,
.breadcrumbs .separator i {
    width: 14px;
    height: 14px;
}

.breadcrumbs .current {
    color: var(--text);
    font-weight: 500;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.page-header-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.page-header-icon svg,
.page-header-icon i {
    width: 32px;
    height: 32px;
}

.page-header-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.page-header-content p {
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.7;
}

/* Format Header */
.format-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.format-header-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.format-header-icon svg,
.format-header-icon i {
    width: 32px;
    height: 32px;
}

.format-header-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.format-header-content .format-full-name {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.format-header-content p {
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.7;
}

/* Format Grid Section */
.format-grid-section {
    margin-bottom: 3rem;
}

.format-grid-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.format-grid-section h2 svg,
.format-grid-section h2 i {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Format Card */
.format-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.format-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--format-color);
}

.format-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 1.25rem 1.25rem 0;
}

.format-card-icon svg,
.format-card-icon i {
    width: 24px;
    height: 24px;
}

.format-card-content {
    padding: 1rem 1.25rem;
    flex: 1;
}

.format-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.format-card-content .format-fullname {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.format-card-content .format-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.format-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.format-card-meta .file-count {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.format-card-meta .file-count svg,
.format-card-meta .file-count i {
    width: 14px;
    height: 14px;
}

.format-card-meta .view-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.format-card-meta .view-link svg,
.format-card-meta .view-link i {
    width: 14px;
    height: 14px;
}

/* Files Section */
.files-section {
    margin-bottom: 3rem;
}

.files-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.files-section h2 svg,
.files-section h2 i {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.empty-state svg,
.empty-state i {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Thumbnail Grid */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.thumbnail-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.thumbnail-container {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.5rem;
}

.thumbnail-placeholder svg,
.thumbnail-placeholder i {
    width: 48px;
    height: 48px;
    opacity: 0.8;
}

.thumbnail-placeholder span {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.thumbnail-info {
    padding: 1rem;
}

.thumbnail-info .file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thumbnail-info .file-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Thumbnail Actions - Download first, icon-only copy */
.thumbnail-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.thumbnail-actions .btn-download {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.thumbnail-actions .btn-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    flex-shrink: 0;
}

.thumbnail-actions .btn-icon svg,
.thumbnail-actions .btn-icon i {
    width: 16px;
    height: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn svg,
.btn i {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    filter: brightness(1.1);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    filter: brightness(1.1);
}

.btn-download {
    background: var(--success);
    color: white;
}

.btn-download:hover {
    filter: brightness(1.1);
}

.btn-copy {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-copy:hover,
.btn-copy.copied {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Related Tools Section */
.related-tools-section {
    margin-bottom: 3rem;
}

.related-tools-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.related-tools-section h2 svg,
.related-tools-section h2 i {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tool-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tool-link svg,
.tool-link i {
    width: 16px;
    height: 16px;
}

/* About Format Section */
.about-format {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.about-format h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.about-format h2 svg,
.about-format h2 i {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.about-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content strong {
    color: var(--text);
    font-weight: 600;
}

.about-content ul,
.about-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.about-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.about-content li:last-child {
    margin-bottom: 0;
}

.about-content li strong {
    color: var(--text);
}

.about-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.about-content a:hover {
    text-decoration: underline;
}

/* Browse Formats Section */
.browse-formats {
    margin-bottom: 3rem;
}

.browse-formats h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.browse-formats h2 svg,
.browse-formats h2 i {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.formats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.format-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.format-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.format-badge svg,
.format-badge i {
    width: 14px;
    height: 14px;
}

/* Info Panels */
.info-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.info-panel {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.info-panel h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.info-panel h2 svg,
.info-panel h2 i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.info-panel p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.info-panel ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-panel ul li svg,
.info-panel ul li i {
    width: 16px;
    height: 16px;
    color: var(--success);
}

/* Tools Mini Grid */
.tools-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.tool-mini-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tool-mini-link:hover {
    background: var(--primary);
    color: white;
}

.tool-mini-link svg,
.tool-mini-link i {
    width: 14px;
    height: 14px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: var(--success);
}

.toast.success svg,
.toast.success i {
    color: var(--success);
}

.toast svg,
.toast i {
    width: 18px;
    height: 18px;
}

/* ============================================
   ADMIN STYLES
   ============================================ */

.admin-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-header h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    flex-shrink: 0;
}

.admin-header h1 svg,
.admin-header h1 i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Panel */
.panel {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.panel h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.panel h2 svg,
.panel h2 i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.panel-description {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

/* Form */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: var(--bg-elevated);
    color: var(--text);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

/* SEO Edit Section - No border-left, use background instead */
.seo-section {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.seo-edit-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    transition: background-color var(--transition-speed);
}

.seo-edit-header svg,
.seo-edit-header i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.seo-edit-header span {
    font-weight: 600;
    color: var(--text);
}

.seo-edit-content {
    padding: 1.5rem;
}

.seo-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.seo-placeholder svg,
.seo-placeholder i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

/* Bulk Actions */
.bulk-actions-grid {
    display: grid;
    gap: 1rem;
}

.bulk-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-speed);
}

.bulk-action-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bulk-action-icon svg,
.bulk-action-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.bulk-action-content {
    flex: 1;
}

.bulk-action-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.bulk-action-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Format Reference Grid */
.format-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.format-ref-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-speed);
}

.format-ref-info {
    flex: 1;
}

.format-ref-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
}

.format-ref-mime {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Color Preview */
.color-preview {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Messages */
.message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--success-light);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    margin-bottom: 1.5rem;
}

.message svg,
.message i {
    width: 18px;
    height: 18px;
}

.error-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--danger-light);
    border: 1px solid var(--danger);
    border-radius: var(--radius-md);
    color: var(--danger);
    margin-bottom: 1.5rem;
}

.error-msg svg,
.error-msg i {
    width: 18px;
    height: 18px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge svg,
.status-badge i {
    width: 14px;
    height: 14px;
}

.status-badge.success {
    background: var(--success-light);
    color: var(--success);
}

.status-badge.warning {
    background: var(--warning-light);
    color: var(--warning);
}

/* Format Stat Card */
.format-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.format-stat-card:hover {
    background: var(--bg-tertiary);
}

.format-stat-card .format-name {
    font-weight: 600;
    color: var(--text);
}

.format-stat-card .format-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: auto;
}

.format-stat-card .missing-badge {
    background: var(--danger-light);
    color: var(--danger);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

/* Default Thumbnail Section */
.default-thumb-section {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.thumb-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.thumb-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.default-thumb-form {
    flex: 1;
}

.back-link {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.back-link svg,
.back-link i {
    width: 14px;
    height: 14px;
}

/* Data Table */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--bg-secondary);
}

.data-table td {
    font-size: 0.9rem;
    color: var(--text);
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

.thumbnail-cell {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.thumbnail-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumb-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
}

.filename-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.format-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.format-link:hover {
    color: var(--primary);
}

.action-btns {
    display: flex;
    gap: 0.35rem;
}

.btn-table {
    padding: 0.4rem;
    min-width: auto;
}

.btn-table svg,
.btn-table i {
    width: 16px;
    height: 16px;
}

.btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
}

.btn-sm svg,
.btn-sm i {
    width: 14px;
    height: 14px;
}

/* System Info */
.system-info {
    list-style: none;
    padding: 0;
}

.system-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.system-info li:last-child {
    border-bottom: none;
}

.system-info li svg,
.system-info li i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.system-info li strong {
    color: var(--text);
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.login-card h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.login-card h1 svg,
.login-card h1 i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.btn-login {
    width: 100%;
    margin-top: 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Hide text on mobile */
@media (max-width: 768px) {
    .btn-text-desktop {
        display: none;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .container {
        padding: 1rem;
    }
    
    .admin-container {
        padding: 1rem;
    }
    
    .format-header,
    .page-header {
        flex-direction: column;
        text-align: center;
    }
    
    .format-header-icon,
    .page-header-icon {
        margin: 0 auto;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .default-thumb-section {
        flex-direction: column;
    }
    
    .thumb-preview {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
    
    .tools-mini-grid {
        grid-template-columns: 1fr;
    }
    
    .info-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .thumbnail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .thumbnail-actions {
        flex-direction: row;
    }
    
    .thumbnail-actions .btn-download {
        flex: 1;
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
    
    .thumbnail-actions .btn-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    
    .format-grid {
        grid-template-columns: 1fr;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
