/* ===========================================
   BinaryTV - Modern Dashboard Styles
   =========================================== */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #D4A82F;
    --primary-dark: #B8922A;
    --secondary-color: #1E293B;
    --accent-color: #E5B93D;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --bg-card-hover: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-color: #334155;
    --gradient-primary: linear-gradient(135deg, #D4A82F 0%, #E5B93D 100%);
    --gradient-dark: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Fix Bootstrap text colors to be more visible on dark background */
.text-muted {
    color: #94A3B8 !important;
}
.text-secondary {
    color: #94A3B8 !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===========================================
   Navigation
   =========================================== */
.navbar-custom {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.logo-modern {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.logo-modern .logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-modern .logo-text .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-modern .logo-text .dark {
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    color: #1a1a1a;
}

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--text-primary) !important;
    background: var(--bg-card);
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 60%;
}

/* Dropdown toggle - custom caret */
.nav-link-custom.dropdown-toggle::after {
    content: '\F282'; /* Bootstrap Icons chevron-down */
    font-family: 'bootstrap-icons';
    border: none;
    vertical-align: middle;
    margin-left: 0.35rem;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-link-custom.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Custom Dropdown Menu */
.dropdown-menu-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    min-width: 200px;
    margin-top: 0 !important;
}

/* Hover-triggered dropdowns (desktop only) */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        animation: dropdownFadeIn 0.15s ease;
    }
    
    .navbar-nav .nav-item.dropdown > .dropdown-menu {
        margin-top: 0;
    }
    
    @keyframes dropdownFadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.dropdown-menu-custom .dropdown-item {
    color: var(--text-secondary);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu-custom .dropdown-item:hover,
.dropdown-menu-custom .dropdown-item:focus {
    background: rgba(212, 168, 47, 0.1);
    color: var(--text-primary);
}

.dropdown-menu-custom .dropdown-item.active {
    background: var(--primary-color);
    color: #000;
}

.dropdown-menu-custom .dropdown-item i {
    width: 20px;
    opacity: 0.7;
}

.dropdown-menu-custom .dropdown-item:hover i {
    opacity: 1;
}

.dropdown-menu-custom .dropdown-header {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.dropdown-menu-custom .dropdown-header strong {
    color: var(--text-primary);
}

.dropdown-menu-custom .dropdown-divider {
    border-color: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-menu-custom .dropdown-item.text-warning:hover {
    background: rgba(255, 193, 7, 0.15);
}

.dropdown-menu-custom .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.15);
}

/* ===========================================
   Google Sign-In Button
   =========================================== */
.btn-google {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff !important;
    color: #3c4043 !important;
    border: 1px solid #dadce0 !important;
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none !important;
}

.btn-google:hover,
.btn-google:focus {
    background: #f8f9fa !important;
    border-color: #c6c9cc !important;
    color: #3c4043 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.btn-google:active {
    background: #eeeeee !important;
    color: #3c4043 !important;
}

.btn-google svg,
.btn-google .google-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Divider with text */
.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider-with-text span {
    padding: 0 1rem;
}

/* ===========================================
   Buttons
   =========================================== */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: #1a1a1a;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: 0 4px 14px 0 rgba(212, 168, 47, 0.39);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 47, 0.5);
    color: #1a1a1a;
}

.btn-secondary-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-danger-custom {
    background: var(--danger-color);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-danger-custom:hover {
    background: #DC2626;
    transform: translateY(-1px);
    color: white;
}

.btn-success-custom {
    background: var(--success-color);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-success-custom:hover {
    background: #059669;
    transform: translateY(-1px);
    color: white;
}

/* ===========================================
   Cards
   =========================================== */
.card-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-custom .card-img-top {
    height: 200px;
    object-fit: cover;
    background: var(--bg-dark);
}

.card-custom video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-dark);
}

.card-custom .card-body {
    padding: 1.25rem;
}

.card-custom .card-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-custom .card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ===========================================
   Forms
   =========================================== */
.form-control-custom,
.form-control.form-control-custom {
    background: var(--bg-dark) !important;
    border: 1px solid var(--border-color);
    color: #F8FAFC !important;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control-custom:focus,
.form-control.form-control-custom:focus {
    background: var(--bg-dark) !important;
    border-color: var(--primary-color);
    color: #F8FAFC !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 47, 0.15);
    outline: none;
}

.form-control-custom::placeholder,
.form-control.form-control-custom::placeholder {
    color: #64748B !important;
}

.form-label-custom {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-select-custom {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.form-select-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 168, 47, 0.15);
    outline: none;
}

/* ===========================================
   Page Headers
   =========================================== */
.page-header {
    padding: 8rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #94A3B8;
    font-size: 1rem;
}

/* ===========================================
   Login Page
   =========================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-dark);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
}

.login-card .login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .login-header h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-card .login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-card .form-group {
    margin-bottom: 1.25rem;
}

.login-card .btn-login {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* ===========================================
   Dashboard / Media Grid
   =========================================== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.media-card .video-container,
.media-card .media-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: var(--bg-dark);
}

.media-card .video-container video,
.media-card .media-container video,
.media-card .media-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.badge-video {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.badge-image {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.media-card .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.media-card:hover .play-overlay {
    opacity: 1;
}

.media-card .play-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.media-card .card-content {
    padding: 1.25rem;
}

.media-card .card-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card .card-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===========================================
   Tables
   =========================================== */
.table-custom {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table-custom table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table-custom th {
    background: var(--bg-dark);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table-custom td {
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.table-custom tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-custom .editable-cell {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.table-custom .editable-cell:hover {
    background: var(--bg-dark);
}

.table-custom .edit-input {
    background: var(--bg-dark);
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    width: 100%;
}

/* ===========================================
   Upload Section
   =========================================== */
.upload-container {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
}

.upload-container:hover,
.upload-container.dragover {
    border-color: var(--primary-color);
    background: rgba(212, 168, 47, 0.05);
}

.upload-container .upload-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.upload-container .upload-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.upload-container h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-container p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Progress Bar */
.progress-custom {
    height: 8px;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.progress-custom .progress-bar {
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.upload-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.upload-stat {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.upload-stat .label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.upload-stat .value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* ===========================================
   Alerts & Messages
   =========================================== */
.alert-custom {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3B82F6;
}

/* ===========================================
   Profile Section
   =========================================== */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.profile-card .profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-card .avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* ===========================================
   Footer
   =========================================== */
.footer-custom {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-custom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ===========================================
   Utilities
   =========================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.section-padding {
    padding: 6rem 0;
}

/* ===========================================
   Responsive Design
   =========================================== */

/* Tablet breakpoint */
@media (max-width: 991px) {
    .navbar-custom {
        padding: 0.75rem 0;
    }
    
    .page-header {
        padding: 7rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .upload-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Navigation improvements */
    .navbar-collapse {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        padding: 1rem;
        margin-top: 1rem;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-xl);
    }
    
    .navbar-nav {
        gap: 0.25rem !important;
    }
    
    .nav-link-custom {
        padding: 0.875rem 1rem !important;
        border-radius: var(--radius-md);
    }
    
    .nav-link-custom:hover,
    .nav-link-custom.active {
        background: rgba(212, 168, 47, 0.1);
    }
    
    /* Mobile Dropdown Menus */
    .navbar-nav .dropdown-menu {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        position: static !important;
        transform: none !important;
    }
    
    .navbar-nav .dropdown-menu-custom {
        background: rgba(255, 255, 255, 0.03);
        border: none;
        border-left: 3px solid var(--primary-color);
        border-radius: 0;
        margin-left: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .navbar-nav .dropdown-menu-custom .dropdown-item {
        padding: 0.75rem 1rem 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .navbar-nav .dropdown-menu-custom .dropdown-header {
        padding: 0.5rem 1rem 0.5rem 1.25rem;
    }
    
    .navbar-nav .dropdown-menu-custom .dropdown-divider {
        margin: 0.25rem 1rem;
    }
    
    /* Dropdown toggle arrow for mobile */
    .nav-link-custom.dropdown-toggle::after {
        position: absolute;
        right: 1rem;
    }
    
    .nav-link-custom.dropdown-toggle {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Mobile breakpoint */
@media (max-width: 767px) {
    /* Page headers */
    .page-header {
        padding: 6rem 0 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    /* Cards and containers */
    .card-custom {
        padding: 1rem;
        border-radius: var(--radius-lg);
    }
    
    .login-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    /* Media grid */
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Upload section */
    .upload-container {
        padding: 1.5rem 1rem;
    }
    
    .upload-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    /* Tables - horizontal scroll */
    .table-custom {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-custom table {
        min-width: 600px;
    }
    
    /* Forms */
    .form-control-custom,
    .form-select-custom {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 0.875rem 1rem;
    }
    
    /* Buttons - larger touch targets */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .btn-primary-custom,
    .btn-danger-custom,
    .btn-secondary-custom {
        padding: 0.875rem 1.25rem;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: var(--radius-lg);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Alerts */
    .alert {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .alert .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-custom {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    /* Dashboard header */
    .dashboard-header {
        padding: 5.5rem 0 1rem !important;
    }
    
    .dashboard-title {
        font-size: 1.4rem !important;
    }
    
    /* Stat cards */
    .stat-card {
        padding: 1rem !important;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
    }
    
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.25rem !important;
    }
    
    /* Action buttons in flex containers */
    .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
    
    /* Toast notifications */
    .toast-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .dashboard-title {
        font-size: 1.25rem !important;
    }
    
    /* Stack buttons on very small screens */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .upload-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   Animations
   =========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* DataTables Override */
.dataTables_wrapper {
    color: var(--text-primary);
}

.dataTables_filter input {
    background: var(--bg-dark) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.5rem 1rem !important;
}

.dataTables_filter label {
    color: var(--text-secondary) !important;
}

.dataTables_info {
    color: var(--text-muted) !important;
}

.dataTables_paginate .paginate_button {
    background: var(--bg-dark) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
}

.dataTables_paginate .paginate_button.current {
    background: var(--gradient-primary) !important;
    border-color: var(--primary-color) !important;
    color: #1a1a1a !important;
}

/* ===========================================
   Yellow Background - Black Text/Icons Fix
   =========================================== */
/* Ensure all yellow/gold backgrounds have black text and icons */
.bg-gradient-primary,
.bg-gradient-primary *,
[style*="gradient-primary"],
.logo-icon,
.logo-icon * {
    color: #1a1a1a !important;
}

/* Bootstrap btn-primary override for yellow theme */
.btn-primary {
    background: var(--gradient-primary) !important;
    border-color: var(--primary-color) !important;
    color: #1a1a1a !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #1a1a1a !important;
}

.btn-primary i,
.btn-primary svg,
.btn-primary-custom i,
.btn-primary-custom svg {
    color: #1a1a1a !important;
}

/* Override text-white on primary/yellow backgrounds */
.btn-primary .text-white,
.btn-primary-custom .text-white,
.bg-gradient-primary .text-white,
.bg-primary .text-white {
    color: #1a1a1a !important;
}

/* btn-warning should also have black text */
.btn-warning {
    color: #1a1a1a !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    color: #1a1a1a !important;
}

.btn-warning i,
.btn-warning svg {
    color: #1a1a1a !important;
}

/* Stat icons with yellow/warning backgrounds */
.stat-icon .text-white,
.stat-icon.bg-warning .text-white,
.stat-icon.bg-primary .text-white {
    color: #1a1a1a !important;
}

/* Filter pills and toggle buttons with primary background */
.filter-pill.active,
.view-toggle button.active {
    color: #1a1a1a !important;
}

/* Action buttons with primary class */
.action-btn.primary,
.action-btn.primary i {
    color: #1a1a1a !important;
}

/* Upload buttons */
.upload-btn,
.upload-btn i,
.upload-btn:hover {
    color: #1a1a1a !important;
}

/* Play button overlay */
.media-card .play-btn {
    color: #1a1a1a;
}

.media-card .play-btn svg,
.media-card .play-btn i {
    color: #1a1a1a !important;
}

/* Badge overrides for yellow backgrounds */
.badge.bg-warning,
.badge.bg-primary {
    color: #1a1a1a !important;
}
