/**
 * FileHub - Custom CSS Framework
 * UBold-based modern and clean CSS structure
 * Version: 1.0.0
 * 
 * Structure:
 * - base.css       → Reset, Variables, Typography
 * - components.css → Buttons, Cards, Forms, Tables, Badges
 * - layout.css     → Sidebar, Topbar, Main Content, Footer
 * - utilities.css  → Display, Flexbox, Grid, Spacing
 */

@import url('base.css');
@import url('components.css');
@import url('layout.css');
@import url('utilities.css');

/* ============================================
   Page-Specific Styles (if needed)
   Add custom styles below for specific pages
   ============================================ */

/* ============================================
   Dark Toast Notification (SweetAlert2)
   ============================================ */
.dark-toast.swal2-popup {
    background: #2c3e50 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
}

.dark-toast .swal2-title {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.dark-toast .swal2-icon {
    border-color: transparent !important;
}

.dark-toast .swal2-timer-progress-bar-container {
    direction: ltr !important;
}

.dark-toast-progress.swal2-timer-progress-bar {
    background: rgba(255, 255, 255, 0.8) !important;
    right: auto !important;
    left: 0 !important;
    transform-origin: left center !important;
}

/* Override SweetAlert2 default backward animation with forward animation */
.dark-toast .swal2-timer-progress-bar {
    animation: swal2-toast-progress-forward linear !important;
}

@keyframes swal2-toast-progress-forward {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* ============================================
   Thumbnail Upload Area
   ============================================ */
.thumbnail-upload-area {
    display: block;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.thumbnail-upload-area:hover {
    border-color: #727cf5;
    background: #f0f1ff;
}

.thumbnail-preview {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
