/* Video Converter - Custom Styles */
:root {
    --sidebar-width: 240px;
    --header-height: 60px;
    --primary-color: #0d6efd;
    --dark-bg: #212529;
}

body { background-color: #f8f9fa; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--dark-bg);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar .brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0;
    transition: all 0.2s;
}

.sidebar .nav-link:hover { color: white; background: rgba(255,255,255,0.1); }
.sidebar .nav-link.active { color: white; background: var(--primary-color); }
.sidebar .nav-link i { width: 20px; text-align: center; }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    min-height: 100vh;
}

/* Cards */
.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-radius: 8px; }
.card-header { background: white; border-bottom: 1px solid #eee; font-weight: 600; }

/* Stats Cards */
.stat-card { text-align: center; padding: 1.25rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--primary-color); }
.stat-card .stat-label { color: #6c757d; font-size: 0.85rem; }

/* Status Badges */
.status-pending { background-color: #ffc107; color: #000; }
.status-processing { background-color: #17a2b8; color: #fff; }
.status-completed { background-color: #28a745; color: #fff; }
.status-failed { background-color: #dc3545; color: #fff; }
.status-active { background-color: #28a745; color: #fff; }
.status-inactive { background-color: #6c757d; color: #fff; }

/* Progress */
.progress { height: 8px; border-radius: 4px; }

/* Tables */
.table th { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; color: #6c757d; border-top: none; }
.table td { vertical-align: middle; }

/* Buttons */
.btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* Video Preview */
.video-thumb { width: 120px; height: 68px; object-fit: cover; border-radius: 4px; background: #000; }
.video-thumb-placeholder { width: 120px; height: 68px; background: #343a40; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #6c757d; }

/* Upload Area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
}

.upload-area i { font-size: 3rem; color: #6c757d; margin-bottom: 1rem; }

/* Modal improvements */
.modal-header { border-bottom: 1px solid #eee; }
.modal-footer { border-top: 1px solid #eee; }

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #343a40 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.login-card h3 { text-align: center; margin-bottom: 1.5rem; }

/* Overlay Preview */
.overlay-preview {
    position: relative;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-text {
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.overlay-logo {
    position: absolute;
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Folder Cards */
.folder-card {
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.folder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #ffc107;
}

.folder-card .bi-folder-fill {
    transition: transform 0.2s;
}

.folder-card:hover .bi-folder-fill {
    transform: scale(1.1);
}

/* Breadcrumb styling */
#breadcrumbNav .breadcrumb {
    background-color: #f8f9fa;
    margin-bottom: 0;
}

#breadcrumbNav .breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

#breadcrumbNav .breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}
