/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #e2e8f0;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    font-weight: 400;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 25px 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 25px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.sidebar a, .sidebar .sidebar-link {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 10px;
    font-weight: 500;
    padding: 14px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.sidebar a::before, .sidebar .sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.sidebar a:hover::before, .sidebar .sidebar-link:hover::before {
    left: 100%;
}

.sidebar a:hover, .sidebar .sidebar-link:hover, .sidebar a.active {
    background: linear-gradient(135deg, rgba(102,126,234,0.25), rgba(118,75,162,0.25));
    color: #ffd700;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102,126,234,0.2);
    border-color: rgba(255,215,0,0.3);
}

.sidebar a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.sidebar a:hover i, .sidebar .sidebar-link:hover i {
    transform: scale(1.1);
}

.sidebar .logout-link {
    margin-top: auto;
    background: rgba(255,59,48,0.1);
    border-color: rgba(255,59,48,0.2);
}

.sidebar .logout-link:hover {
    background: linear-gradient(135deg, rgba(255,59,48,0.25), rgba(220,53,69,0.25));
    color: #fff;
    border-color: rgba(255,59,48,0.4);
}

.sidebar-header img {
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 25px rgba(102,126,234,0.3);
    transition: all 0.3s ease;
}

.sidebar-header img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(102,126,234,0.4);
}

/* Mobile Navbar - Modern Design with Logout Only */
.mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    animation: slideInUp 0.5s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-navbar-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.mobile-navbar-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mobile-navbar-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mobile-navbar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.mobile-navbar-title .rental {
    color: #fff;
}

.mobile-navbar-title .live-streaming {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.mobile-navbar-by {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.mobile-navbar-time {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #fff !important;
    opacity: 1 !important;
    letter-spacing: 0.2px;
    margin-top: 2px;
    text-shadow: none !important;
}

.mobile-navbar-right {
    display: flex;
    align-items: center;
}

.mobile-logout-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.mobile-logout-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-logout-btn:active {
    transform: scale(0.95);
}

.mobile-logout-btn i {
    font-size: 16px;
    color: white;
}

.mobile-logout-btn:hover i {
    color: #ff6b6b;
}

/* Bottom Navigation for Mobile - Dark Modern Design */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #1a202c 100%);
    backdrop-filter: blur(25px);
    box-shadow: 
        0 -8px 32px rgba(0, 0, 0, 0.4),
        0 -4px 16px rgba(255, 193, 7, 0.15),
        inset 0 1px 0 rgba(255, 193, 7, 0.1);
    z-index: 1000;
    padding: 12px 6px env(safe-area-inset-bottom, 10px) 6px;
    border-top: 2px solid rgba(255, 193, 7, 0.3);
    animation: slideInUp 0.5s ease-out;
}

.mobile-bottom-nav::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 193, 7, 0.6) 25%, 
        rgba(255, 193, 7, 1) 50%, 
        rgba(255, 193, 7, 0.6) 75%, 
        transparent 100%);
    animation: shimmerGlow 3s ease-in-out infinite;
}

@keyframes shimmerGlow {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 8px 4px 6px 4px;
    flex: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    margin: 0 1px;
    position: relative;
    overflow: hidden;
    min-height: 48px; /* Touch-friendly size */
}

.mobile-bottom-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1) 0%, 
        rgba(255, 193, 7, 0.05) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.15);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(255, 193, 7, 0.2);
}

.mobile-bottom-nav .nav-item:hover::before,
.mobile-bottom-nav .nav-item.active::before {
    opacity: 1;
}

.mobile-bottom-nav .nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

.mobile-bottom-nav .nav-item span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mobile-bottom-nav .nav-item:hover i,
.mobile-bottom-nav .nav-item.active i {
    transform: scale(1.2) rotateY(5deg);
    color: #ffc107;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

.mobile-bottom-nav .nav-item:hover span,
.mobile-bottom-nav .nav-item.active span {
    color: #ffc107;
    text-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
    transform: translateY(-1px);
}

.mobile-bottom-nav .nav-item:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    width: calc(100vw - 340px);
    margin: 0 auto 0 320px;
    padding: 40px 20px 40px 20px;
    min-height: 100vh;
    background: #f8fafc !important;
    box-shadow: none;
    position: relative;
    border-radius: 32px 0 0 32px;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.main-content > * {
    position: relative;
    z-index: 1;
}

.main-content.youtube-profile-main {
    max-width: none;
    width: calc(100vw - 250px);
    margin-left: 250px;
    margin-right: 0;
    padding: 30px 18px 30px 32px;
    min-height: 100vh;
    background: #f5f7fa !important;
    box-shadow: none;
}

/* Header */
header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

header h1 small {
    font-size: 16px;
    color: #718096;
    font-weight: 400;
    display: block;
    margin-top: 5px;
}

#time {
    font-size: 16px;
    color: #667eea;
    font-weight: 500;
}

/* Search Bar - Super Compact Design */
.search-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(31, 38, 135, 0.04);
    padding: 16px 20px;
    align-items: center;
    flex-wrap: wrap;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.search-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.search-bar input[type="text"] {
    flex: 2 1 200px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
    font-weight: 500;
    height: 37px;
    box-sizing: border-box;
}

.search-bar input[type="text"]:focus {
    border: 1px solid #667eea;
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.08);
    background: #fff;
}

.search-bar select {
    flex: 1 1 160px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
    font-weight: 500;
    height: 37px;
    box-sizing: border-box;
}

.search-bar select:focus {
    border: 1px solid #667eea;
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.08);
    background: #fff;
}

/* Live Counts - Desktop Normal Size */
.live-counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.live-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(31, 38, 135, 0.04);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.live-count::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 24px 24px 0 0;
    transition: all 0.3s ease;
}

.live-count::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s;
}

.live-count:hover::after {
    left: 100%;
}

.live-count:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px rgba(31, 38, 135, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.live-count:hover::before {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 2s ease infinite;
}

.live-count h3 {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.count-number {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: none;
    line-height: 1;
}

/* Cards Container - Desktop Normal */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

@media (max-width: 1200px) {
    .main-content { max-width: 98vw; margin-left: 0; border-radius: 0; }
    .cards-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
    .cards-container { grid-template-columns: 1fr; }
}

/* Card - Modern Design */
.card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card p {
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 14px;
}

.card p strong {
    color: #2d3748;
    font-weight: 600;
}

.status {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status[style*="color: green"] {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78 !important;
}

.status[style*="color: orange"] {
    background: rgba(237, 137, 54, 0.1);
    color: #ed8936 !important;
}

.status[style*="color: red"] {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565 !important;
}

.card .actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card .actions button {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 80px;
}

.card .actions button:not(.delete-btn) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.card .actions button:not(.delete-btn):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.card .actions .delete-btn {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.card .actions .delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.4);
}

.card .actions .delete-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Add Button - Modern Floating Button */
.add-button {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.add-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f093fb, #667eea, #764ba2);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-button:hover::before {
    opacity: 1;
}

.add-button:hover {
    transform: scale(1.15) translateY(-8px) rotate(180deg);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.6);
}

.add-button span {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.add-button:hover span {
    transform: scale(1.2);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        width: 100vw;
        padding: 20px 15px 20px 15px;
        margin-top: 80px !important;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        margin-right: 0;
    }

    .mobile-navbar {
        display: flex;
        align-items: center;
        padding: 12px 20px !important;
        backdrop-filter: blur(15px);
    }

    .mobile-bottom-nav {
        display: flex !important;
        align-items: center;
        justify-content: space-around;
        height: auto;
        padding: 10px 0 env(safe-area-inset-bottom, 8px);
        backdrop-filter: blur(25px);
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #1a202c 100%) !important;
        border-top: 2px solid rgba(255, 193, 7, 0.3) !important;
        box-shadow: 
            0 -8px 32px rgba(0, 0, 0, 0.4),
            0 -4px 16px rgba(255, 193, 7, 0.15),
            inset 0 1px 0 rgba(255, 193, 7, 0.1) !important;
    }

    .add-button {
        bottom: 100px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .live-counts {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    /* Search bar CSS moved to more specific mobile section below */

    .live-count {
        padding: 25px 20px;
    }

    .live-count h3 {
        font-size: 14px;
    }

    .count-number {
        font-size: 36px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .card h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .card p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .card p strong {
        min-width: 100px;
    }

    header h1 {
        font-size: 24px;
    }

    .card .actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .card .actions button {
        width: 100%;
        padding: 14px 16px;
    }

    .create-card-hz {
        padding: 20px;
        border-radius: 15px;
    }

    .form-col {
        margin-bottom: 20px;
    }

    .btn-create-modern {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    .form-label, label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .form-control, .form-select, input[type="password"] {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    /* Form input styling - specific for non-search inputs */
    form input[type="text"]:not(.search-bar *), .create-card-hz input[type="text"], .modal input[type="text"], 
    .thumbnail-upload-card input[type="text"], .settings-form input[type="text"] {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    /* Search bar mobile override - highest priority */
    .search-bar input[type="text"] {
        padding: 7px 11px !important;
        font-size: 14px !important;
        height: 33px !important;
    }
    
    .search-bar select {
        padding: 7px 11px !important;
        font-size: 14px !important;
        height: 33px !important;
    }

    .mobile-navbar-title {
        font-size: 22px !important;
        font-weight: 700 !important;
        text-shadow: none !important;
        padding-bottom: 2px;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }
    .mobile-navbar-title .rental {
        color: #fff !important;
        font-weight: 700 !important;
        text-shadow: none !important;
    }
    .mobile-navbar-title .live-streaming {
        color: #FF0000 !important;
        font-weight: 700 !important;
        text-shadow: none !important;
        margin-left: 2px;
    }

    .youtube-profile-container .channel-card, .channels-list .channel-card {
        width: 100%;
        max-width: none;
    }
}

/* Old bottom-nav CSS removed - conflict resolved */

/* Modern Video Card Styles */
.video-card-modern {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.video-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.video-card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.video-card-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-card-header .header-left i {
    font-size: 20px;
    color: #ffd700;
}

.search-bar-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-width: 250px;
    max-width: 350px;
    width: 100%;
}

.search-bar-modern input {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    border: none;
    padding: 10px 15px 10px 35px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(102,126,234,0.07);
    font-size: 14px;
}

.search-bar-modern i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
    pointer-events: none;
}

/* Modern Button Styles */
.btn-modern-danger {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.btn-modern-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.4);
}

/* Modern File List Styles */
.file-list-modern {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow-y: visible !important;
    max-height: none !important;
}

.file-item-modern {
    display: flex;
    flex-direction: column;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.file-item-modern:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-item-modern .file-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
    margin-bottom: 10px;
    word-break: break-word;
    line-height: 1.4;
}

.file-item-modern .file-actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.btn-modern-preview {
    background: linear-gradient(90deg, #4f8cff 0%, #6dd5ed 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(79,140,255,0.15);
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 1;
    min-width: 90px;
    justify-content: center;
}

.btn-modern-preview:hover {
    background: linear-gradient(90deg, #6dd5ed 0%, #4f8cff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79,140,255,0.2);
}

.btn-modern-edit {
    background: linear-gradient(90deg, #ffd600 0%, #ffef8f 100%);
    color: #7a5c00;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(255,214,0,0.15);
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 1;
    min-width: 80px;
    justify-content: center;
}

.btn-modern-edit:hover {
    background: linear-gradient(90deg, #ffef8f 0%, #ffd600 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255,214,0,0.2);
}

.btn-modern-delete {
    background: linear-gradient(90deg, #ff2323 0%, #ff5e62 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(255,59,63,0.15);
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 1;
    min-width: 85px;
    justify-content: center;
}

.btn-modern-delete:hover {
    background: linear-gradient(90deg, #ff5e62 0%, #ff2323 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255,59,63,0.2);
}

.btn-modern-download {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 85px;
    justify-content: center;
}

.btn-modern-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(237, 137, 54, 0.2);
}

/* Card channel YouTube dan tombol tambah akun ramping, modern, menarik */
.youtube-profile-container .channels-list .channel-card {
    width: 100%;
    max-width: 540px;
    margin: 0 auto 24px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-sizing: border-box;
    padding: 20px 22px;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(102,126,234,0.13);
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.youtube-profile-container .channels-list .channel-card:hover {
    box-shadow: 0 10px 32px rgba(102,126,234,0.18);
    transform: translateY(-2px) scale(1.01);
}
.youtube-profile-container .channel-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin-right: 10px;
}
.youtube-profile-container .channel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.youtube-profile-container .channel-info h4 {
    color: #fff;
    font-weight: 800;
    font-size: 1.13rem;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}
.youtube-profile-container .channel-info p {
    color: #e0e7ff;
    font-size: 0.97rem;
    margin-bottom: 2px;
    font-weight: 400;
}
.youtube-profile-container .channel-info p i {
    color: #ffd700;
    margin-right: 4px;
}
.youtube-profile-container .channel-card-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.youtube-profile-container .channels-list .btn-danger {
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: #fff;
    border: none;
    border-radius: 13px;
    padding: 13px 26px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 2px 10px rgba(255,59,63,0.13);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    outline: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.youtube-profile-container .channels-list .btn-danger:hover {
    background: linear-gradient(90deg, #dd2476 0%, #ff512f 100%);
    box-shadow: 0 6px 18px rgba(255,59,63,0.18);
    transform: translateY(-2px) scale(1.04);
}
.youtube-profile-container .add-account-section {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 28px auto;
    display: flex;
    justify-content: flex-start;
    padding: 0;
}
.youtube-profile-container .btn-add-account-modern {
    width: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 1.13rem;
    border: none;
    border-radius: 13px;
    padding: 15px 0;
    box-shadow: 0 4px 18px rgba(102,126,234,0.10);
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    text-decoration: none !important;
    text-align: center;
    letter-spacing: 0.5px;
    cursor: pointer;
    outline: none;
}
.youtube-profile-container .btn-add-account-modern:hover, .youtube-profile-container .btn-add-account-modern:focus {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 8px 24px 0 rgba(102,126,234,0.18), 0 0 12px #764ba2;
    transform: translateY(-2px) scale(1.03);
    color: #fff !important;
    text-decoration: none !important;
}
@media (max-width: 700px) {
  .youtube-profile-container .channels-list .channel-card,
  .youtube-profile-container .add-account-section {
    max-width: 98vw;
    padding: 10px 4px;
    border-radius: 10px;
  }
  .youtube-profile-container .channel-avatar {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px auto;
  }
  .youtube-profile-container .channel-info h4 {
    font-size: 1.01rem;
  }
  .youtube-profile-container .channels-list .btn-danger {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
  }
}

/* List channel grid 2 kolom */
.youtube-profile-container .channels-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 22px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}
.youtube-profile-container .channels-list .channel-card {
    margin: 0;
}
@media (max-width: 900px) {
  .youtube-profile-container .channels-list {
    grid-template-columns: 1fr;
    gap: 18px 0;
    max-width: 98vw;
  }
}

/* Desktop: Header profil rapi, sejajar kiri */
.youtube-profile-container .profile-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    margin-left: 32px;
    margin-right: 0;
    gap: 0 32px;
}
.youtube-profile-container .profile-title {
    display: flex;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #222;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
}
.youtube-profile-container .profile-title .youtube-icon {
    color: #FF0000;
    font-size: 2.5rem;
    margin-right: 16px;
    vertical-align: middle;
    display: inline-block;
}
.youtube-profile-container .btn-add-account-modern {
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 1.13rem;
    border: none;
    border-radius: 13px;
    padding: 13px 38px;
    box-shadow: 0 4px 18px rgba(255,59,63,0.10);
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    text-decoration: none !important;
    text-align: center;
    letter-spacing: 0.5px;
    cursor: pointer;
    outline: none;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 32px;
}
.youtube-profile-container .btn-add-account-modern:hover, .youtube-profile-container .btn-add-account-modern:focus {
    background: linear-gradient(90deg, #dd2476 0%, #ff512f 100%);
    box-shadow: 0 8px 24px 0 rgba(255,59,63,0.18), 0 0 12px #ff512f;
    transform: translateY(-2px) scale(1.03);
    color: #fff !important;
    text-decoration: none !important;
}
.youtube-profile-container .profile-subtitle {
    margin-left: 32px;
    margin-bottom: 32px;
    color: #444;
    font-size: 1.08rem;
    font-weight: 400;
    letter-spacing: 0.1px;
    margin-top: 0;
}
.youtube-profile-container .channels-list {
    margin-left: 32px;
    margin-right: auto;
    justify-content: flex-start;
    margin-top: 0;
    gap: 32px 22px;
}
.youtube-profile-container .channels-list .channel-card {
    margin: 0;
}

/* === THUMBNAIL MANAGER MODERN DESKTOP === */
.main-content.thumbnail-manager-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 40px 48px 40px;
  box-sizing: border-box;
}
.main-content.thumbnail-manager-main .card {
  width: 100%;
  max-width: 100%;
  margin: 0 0 32px 0;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(102,126,234,0.10);
  padding: 0;
}
.thumbnail-manager-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
  text-align: left;
  padding-left: 0;
}
.thumbnail-upload-card .card-header,
.thumbnail-gallery-header {
  border-radius: 18px 18px 0 0;
  padding: 18px 28px;
}
.thumbnail-upload-card .card-body,
.main-content.thumbnail-manager-main .card .card-body {
  padding: 28px 28px 22px 28px;
}
.thumbnail-list-item {
  margin: 0 0 18px 0;
  border-left: none !important;
  box-shadow: 0 2px 8px rgba(102,126,234,0.07);
  background: #fff;
  border-radius: 12px;
  padding: 12px 18px;
}

/* Hilangkan bar/kursor di samping kiri list thumbnail */
.thumbnail-list-item {
  border-left: none !important;
  box-shadow: 0 2px 8px rgba(102,126,234,0.07); /* hanya shadow bawah, tanpa garis samping */
  background: #fff;
}
.thumbnail-list-item:before,
.thumbnail-list-item:after {
  display: none !important;
}

/* Galeri thumbnail gaya Bootstrap card galeri, rapi, modern */
.thumbnail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
  margin: 0 auto;
  max-width: 100%;
}
@media (max-width: 1100px) {
  .thumbnail-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .thumbnail-gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Responsive file actions buttons - lebih nyaman di mobile */
  .file-actions .btn, .arsip-actions button, .btn-modern-preview, .btn-modern-edit, .btn-modern-delete, .btn-modern-download {
    font-size: 0.95rem !important;
    padding: 0.32rem 0.7rem !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
  }
}
.thumbnail-gallery-card {
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}
.thumbnail-gallery-card:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.thumbnail-gallery-card .thumb-filename {
  font-weight: 600;
  font-size: 15px;
  color: #2d3748;
  margin-bottom: 12px;
  word-break: break-word;
  line-height: 1.4;
}
.thumbnail-gallery-card .thumb-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 12px;
}
.thumbnail-gallery-card .thumb-info {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
  text-align: left;
}
.thumbnail-gallery-card .btn-delete-thumb {
  background: linear-gradient(90deg, #ff2323 0%, #ff5e62 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255,59,63,0.15);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.thumbnail-gallery-card .btn-delete-thumb:hover {
  background: #dc3545 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4) !important;
}
/* ===== UPLOAD CARD - RAMPING DAN KONSISTEN DENGAN GALERI ===== */
.thumbnail-upload-card {
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(102,126,234,0.10);
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0 auto 24px auto;
  max-width: 100%;
  width: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.thumbnail-upload-card:hover {
  box-shadow: 0 8px 32px rgba(102,126,234,0.18);
  transform: translateY(-2px);
}

.thumbnail-upload-card .card-body {
  padding: 24px 20px 20px 20px;
}

/* List card thumbnail satu kolom, rata tengah, mirip file-download */
.thumbnail-list-modern {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.thumbnail-list-card {
  max-width: 540px;
  margin: 0 auto 32px auto;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(102,126,234,0.10);
  border: none;
  padding: 0;
  background: #fff;
}
.thumbnail-list-card .card-header {
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 20px 32px 0 32px;
  border: none;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0;
}
.thumbnail-list-card .card-body {
  padding: 32px 32px 24px 32px;
}
.thumbnail-list-card .thumb-image {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 18px;
}
.thumbnail-list-card .btn-danger {
  width: 100%;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 0;
  margin-top: 8px;
  background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
  border: none;
  box-shadow: 0 2px 10px rgba(255,59,63,0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.thumbnail-list-card .btn-danger:hover {
  background: linear-gradient(90deg, #dd2476 0%, #ff512f 100%);
  box-shadow: 0 6px 18px rgba(255,59,63,0.18);
  transform: translateY(-2px) scale(1.03);
}

/* === Thumbnail Gallery Modern (Custom) === */
.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.thumbnail-card {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(102,126,234,0.10);
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    margin: 0 auto;
}

.thumbnail-card:hover {
    box-shadow: 0 8px 32px rgba(102,126,234,0.18);
    transform: translateY(-4px) scale(1.02);
}

.thumbnail-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    background: #f3f3f3;
}

.thumbnail-card .card-body {
    padding: 18px 14px 14px 14px;
    text-align: center;
}

.thumbnail-filename {
    font-size: 0.95rem;
    color: #666;
    word-break: break-all;
    margin-bottom: 10px;
}

.thumbnail-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.thumbnail-actions .btn {
    border-radius: 10px;
    font-size: 0.98rem;
    padding: 7px 16px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.thumbnail-actions .btn-warning {
    background: linear-gradient(90deg, #ffd600 0%, #ffef8f 100%);
    color: #7a5c00;
    border: none;
}

.thumbnail-actions .btn-danger {
    background: linear-gradient(90deg, #ff2323 0%, #ff5e62 100%);
    color: #fff;
    border: none;
}

.thumbnail-actions .btn-warning:hover {
    background: linear-gradient(90deg, #ffef8f 0%, #ffd600 100%);
    color: #5a4fcf;
}

.thumbnail-actions .btn-danger:hover {
    background: linear-gradient(90deg, #ff5e62 0%, #ff2323 100%);
    color: #fff;
}

@media (max-width: 900px) {
    .thumbnail-gallery {
        gap: 16px;
    }
    .thumbnail-card {
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .thumbnail-gallery {
        flex-direction: column;
        gap: 12px;
    }
    .thumbnail-card {
        max-width: 100vw;
        border-radius: 12px;
    }
    .thumbnail-img {
        border-radius: 12px 12px 0 0;
    }
}

/* === Custom Modal Styles - Full Screen Fix === */
.custom-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Desktop specific modal overlay fix */
@media (min-width: 769px) {
    .custom-modal-overlay,
    .modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        z-index: 99999 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        transform: none !important;
    }
    
    .custom-modal-overlay {
        padding: 20px !important;
    }
}

.custom-modal {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    z-index: 100000;
}

/* Preview Modal Specific Styles */
#previewModal .custom-modal {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
}

#previewModal .modal-body {
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

#previewModal #previewImage {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.custom-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 18px 18px 0 0;
}

.custom-modal .modal-header h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.custom-modal .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.custom-modal .btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.custom-modal .modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.custom-modal form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.custom-modal .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.custom-modal .form-control {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8f9fa;
}

.custom-modal .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.custom-modal .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.custom-modal .btn-modern-edit {
    background: linear-gradient(90deg, #ffd600 0%, #ffef8f 100%);
    color: #7a5c00;
}

.custom-modal .btn-modern-edit:hover {
    background: linear-gradient(90deg, #ffef8f 0%, #ffd600 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.custom-modal .btn-modern-delete {
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: white;
}

.custom-modal .btn-modern-delete:hover {
    background: linear-gradient(90deg, #dd2476 0%, #ff512f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.3);
}

@media (max-width: 768px) {
    .custom-modal {
        max-width: 95vw;
        margin: 10px;
    }
    
    .custom-modal .modal-header {
        padding: 16px 20px;
    }
    
    .custom-modal .modal-header h5 {
        font-size: 1.1rem;
    }
    
    .custom-modal .modal-body {
        padding: 20px;
    }
    
    .custom-modal .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* --- Tambahan modernisasi filter & tombol edit dashboard --- */
.card .actions a button {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 1.2rem;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    margin-right: 0.5rem;
    box-shadow: 0 2px 8px rgba(102,126,234,0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    outline: none;
    display: inline-block;
}
.card .actions a button:hover {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 18px rgba(102,126,234,0.18);
}
.card[style*="display: block"] {
    animation: highlightSearch 0.4s;
}
@keyframes highlightSearch {
    from { box-shadow: 0 0 0 0 #ffd70044; }
    to { box-shadow: 0 0 0 6px #ffd70044; }
}
@media (max-width: 700px) {
    /* Search bar CSS moved to more specific mobile section below */
}
/* --- END Tambahan modernisasi filter & tombol edit dashboard --- */

/* --- Modernisasi form create-live manual & API --- */
.create-card-hz {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2.2rem 2rem;
    background: rgba(255,255,255,0.98);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.13);
    backdrop-filter: blur(8px);
    border: 1px solid #e1e5e9;
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.create-card-hz .form-col {
    flex: 1 1 0;
    min-width: 260px;
    max-width: 100%;
}
@media (max-width: 900px) {
    .create-card-hz { flex-direction: column; gap: 1.5rem; padding: 1.2rem 0.5rem; max-width: 98vw; }
    .create-card-hz .form-col { width: 100% !important; }
}
.create-title {
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #2d3a4a;
    font-size: 2.1rem;
    margin-bottom: 1.5rem;
}
.create-title i {
    font-size: 2.1rem;
    color: #667eea !important;
    filter: drop-shadow(0 1px 2px #b3b3ff);
}
.form-label {
    font-weight: 600;
    color: #2d3a4a;
    margin-bottom: 0.3rem;
}
.form-control, .form-select {
    height: 48px;
    padding-left: 0.9rem;
    font-size: 1.13rem;
    border-radius: 10px;
    border: 1.5px solid #e1e5e9;
    background: #f8fbff;
    color: #222;
    transition: border 0.2s, box-shadow 0.2s;
    margin-bottom: 0.2rem;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 2px #667eea33;
    border: 1.5px solid #667eea;
    background: #fff;
    color: #111;
}
.btn-create-modern {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 2rem;
    font-size: 1.18rem;
    box-shadow: 0 2px 12px rgba(102,126,234,0.13);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
    padding: 0.9rem 0;
    width: 100%;
}
.btn-create-modern:hover {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 18px rgba(102,126,234,0.18);
}
.mb-3 { margin-bottom: 1.2rem !important; }
.mt-2 { margin-top: 0.7rem !important; }
.mt-4 { margin-top: 2rem !important; }
.gap-4 { gap: 2rem !important; }
.w-100 { width: 100% !important; }
@media (max-width: 767px) {
    .main-content { padding: 0.7rem 0.2rem; }
    .youtube-profile-container { padding: 0 8px; }
    .create-card-hz { margin: 0.5rem auto; box-shadow: 0 4px 18px rgba(31,38,135,0.10); border-radius: 1rem; flex-direction: column; gap: 0.7rem; padding: 0.7rem 0.2rem; background: rgba(255,255,255,0.98) !important; backdrop-filter: blur(8px); }
    .form-col { width: 100% !important; max-width: 100% !important; margin-bottom: 1.2rem; }
    .create-title, .form-col h4 { margin-bottom: 1.2rem; }
    .btn-create-modern { max-width: 90vw; margin: 0 auto; display: block; padding-left: 0; padding-right: 0; }
}
/* --- END Modernisasi form create-live manual & API --- */

/* --- Modern Sidebar Menu Button Style --- */
.sidebar .sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Inter', 'Poppins', Arial, sans-serif;
    font-size: 1.13rem;
    font-weight: 700;
    padding: 1.05rem 1.2rem;
    margin-bottom: 1.05rem;
    border-radius: 1.2rem;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.04);
    color: #fff;
    box-shadow: none;
    transition: border 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s, transform 0.18s;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}
.sidebar .sidebar-link i { display: none !important; }
.sidebar .sidebar-link:hover, .sidebar .sidebar-link:focus, .sidebar .sidebar-link.active {
    border: 2px solid #ffd700;
    background: rgba(255,255,255,0.10);
    color: #ffd700;
    box-shadow: 0 0 12px 0 #ffd70055;
    transform: translateY(-2px) scale(1.03);
}
@media (max-width: 700px) {
    .sidebar .sidebar-link {
        font-size: 1.01rem;
        padding: 0.7rem 0.7rem;
        margin-bottom: 0.7rem;
    }
}
/* --- END Modern Sidebar Menu Button Style --- */

.youtube-profile-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
}
.youtube-profile-container .channels-list {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* === PERBAIKAN TAMPAKAN MODERN === */

/* Card Icon Improvements */
.card-icon {
    font-size: 24px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-icon {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1) rotate(5deg);
}

/* Improved Typography */
.card h4 {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Button Styles */
.btn-modern {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Form Styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-2px);
}

/* Success/Error States */
.form-group.success input {
    border-color: #48bb78;
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.1);
}

.form-group.error input {
    border-color: #f56565;
    box-shadow: 0 0 0 4px rgba(245, 101, 101, 0.1);
}

/* Enhanced Modal Styles - Full Screen Fix */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 99998 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.3s ease-out;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease-out;
}

/* Enhanced Table Styles */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.table-modern th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.table-modern td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.table-modern tr:hover {
    background: #f8fafc;
}

/* Enhanced Alert Styles */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.alert-error {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border: 1px solid rgba(245, 101, 101, 0.2);
}

.alert-warning {
    background: rgba(237, 137, 54, 0.1);
    color: #c05621;
    border: 1px solid rgba(237, 137, 54, 0.2);
}

.alert-info {
    background: rgba(102, 126, 234, 0.1);
    color: #4c51bf;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Enhanced Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

/* Enhanced Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Enhanced Progress Bar */
.progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.3s ease-out;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #2d3748;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
    border-radius: 8px;
    margin: 4px;
}

.dropdown-content a:hover {
    background: #f8fafc;
    color: #667eea;
}

/* Enhanced Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Enhanced Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card-grid .card {
    margin: 0;
}

/* Enhanced Spacing Utilities */
.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

/* Enhanced Text Utilities */
.text-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced Border Utilities */
.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #667eea, #764ba2) 1;
}

/* Enhanced Shadow Utilities */
.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Enhanced Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Enhanced Hover Effects */
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Enhanced Transitions */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Responsive Utilities */
@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .table-modern {
        font-size: 12px;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 12px 8px;
    }
}

/* Auto Stop Container Styles */
.auto-stop-container {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 0.5rem;
}

.auto-stop-container > div {
    flex: 1;
    min-width: 0;
}

.auto-stop-container .form-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.auto-stop-container .form-select {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 2px solid #e1e5e9;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.auto-stop-container .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
    outline: none;
    transform: translateY(-1px);
}

.auto-stop-container .form-select:hover {
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.15);
}

/* Responsive Auto Stop Container */
@media (max-width: 768px) {
    .auto-stop-container {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .auto-stop-container > div {
        flex: none;
    }
    
    .auto-stop-container .form-select {
        font-size: 1rem;
        padding: 0.8rem 0.9rem;
    }
}

/* Enhanced Print Styles */
@media print {
    .sidebar,
    .mobile-navbar,
    .mobile-bottom-nav,
    .add-button {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

.btn-cancel-modern {
    background: linear-gradient(90deg, #FFD600 0%, #FFB300 100%);
    color: #2d3748;
    border: none;
    font-weight: 900;
    padding: 12px 0;
    border-radius: 32px;
    font-size: 17px;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    box-shadow: 0 4px 18px rgba(255, 214, 0, 0.13);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
}
.btn-cancel-modern:hover, .btn-cancel-modern:focus {
    background: linear-gradient(90deg, #FFB300 0%, #FFA000 100%);
    color: #1a202c;
    box-shadow: 0 8px 32px rgba(255, 179, 0, 0.18);
    text-decoration: none;
}
.d-flex.flex-row.gap-2 > * {
    margin-right: 12px;
}
.d-flex.flex-row.gap-2 > *:last-child {
    margin-right: 0;
}

.cursor-pointer {
    cursor: pointer;
}

/* Card API: biru muda/transparan */
.card.card-api {
  background: linear-gradient(135deg, #e3f0ff 60%, #f7fbff 100%);
  border: 2px solid #3498db;
  box-shadow: 0 4px 18px rgba(52,152,219,0.08);
}

/* Card Manual: hijau muda/transparan */
.card.card-manual {
  background: linear-gradient(135deg, #eaffea 60%, #f7fff7 100%);
  border: 2px solid #27ae60;
  box-shadow: 0 4px 18px rgba(39,174,96,0.08);
}

.card.card-api:hover {
  box-shadow: 0 8px 32px rgba(52,152,219,0.18);
  border-color: #217dbb;
}
.card.card-manual:hover {
  box-shadow: 0 8px 32px rgba(39,174,96,0.18);
  border-color: #1e8449;
}

/* Modern YouTube Profile Styles */
.youtube-profile-info {
    padding: 1rem 0;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.channel-item-modern {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.channel-item-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.channel-item-modern:hover {
    transform: translateY(-4px);
    border-color: #667eea;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

.channel-item-modern:hover::before {
    opacity: 1;
}

.channel-avatar-container {
    flex-shrink: 0;
}

.channel-avatar-modern {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.channel-item-modern:hover .channel-avatar-modern {
    border-color: #667eea;
    transform: scale(1.05);
}

.channel-details {
    flex: 1;
    min-width: 0;
}

.channel-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-status {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e53e3e;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.channel-subscribers {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.channel-subscribers i {
    color: #94a3b8;
}

.channel-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Responsive untuk YouTube Profile */
@media (max-width: 768px) {
    .channels-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .channel-item-modern {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .channel-details {
        min-width: auto;
    }
    
    .channel-name {
        white-space: normal;
        text-overflow: initial;
        overflow: hidden;
    }
    
    .channel-actions {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
}

/* Styling untuk tombol disconnect dan avatar fallback */
.btn-disconnect-modern {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.75rem;
    text-transform: none;
    letter-spacing: 0.25px;
}

.btn-disconnect-modern:hover {
    background: linear-gradient(135deg, #c53030, #9c2626);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 48, 48, 0.3);
}

.btn-disconnect-modern:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(197, 48, 48, 0.2);
}

.channel-avatar-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.channel-item-modern:hover .channel-avatar-fallback {
    border-color: #667eea;
    transform: scale(1.05);
}

/* Responsive untuk tombol disconnect */
@media (max-width: 768px) {
    .btn-disconnect-modern {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        padding: 10px 16px;
    }
}

/* Settings Page Styles */
.settings-form {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.settings-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.settings-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.settings-form .form-control {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.settings-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #374151;
}

.settings-info {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.security-info {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.current-secret-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-reveal-secret {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-reveal-secret:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.secret-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.secret-input-group .form-control {
    flex: 1;
    padding-right: 0.75rem;
}

.btn-generate-secret {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-generate-secret:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.system-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
}

.info-item span {
    color: #6b7280;
    font-family: monospace;
    font-size: 0.95rem;
}

/* File Upload Area Styles */
.file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f0f9ff;
}

.file-upload-area.dragover {
    border-color: #10b981;
    background: #ecfdf5;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.file-upload-placeholder i {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.file-upload-placeholder span {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.file-upload-placeholder small {
    color: #6b7280;
    font-size: 0.875rem;
}

.youtube-api-info {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.config-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.status-badge {
    font-weight: 600;
}

.current-config-details {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.redirect-uri-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.redirect-uri-group .form-control {
    flex: 1;
    border-radius: 8px 0 0 8px;
}

.btn-copy-uri {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    border: 2px solid #667eea;
}

.btn-copy-uri:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4c96);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-copy-uri:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.advanced-toggle-section {
    text-align: center;
    margin: 2rem 0;
}

.btn-toggle-advanced {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.2);
}

.btn-toggle-advanced:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.3);
}

.btn-toggle-advanced:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(107, 114, 128, 0.2);
}

.btn-toggle-advanced i:last-child {
    transition: transform 0.3s ease;
}

/* Responsive untuk Settings */
@media (max-width: 768px) {
    .settings-form {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .secret-input-group {
        flex-direction: column;
    }
    
    .btn-generate-secret {
        justify-content: center;
    }
    
    .current-secret-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .system-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .security-info,
    .settings-info,
    .youtube-api-info {
        margin: 0 0.5rem 1rem 0.5rem;
    }
    
    .file-upload-area {
        padding: 1.5rem 1rem;
    }
    
    .file-upload-placeholder i {
        font-size: 2rem;
    }
    
    .redirect-uri-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .redirect-uri-group .form-control {
        border-radius: 8px;
    }
    
    .btn-copy-uri {
        border-radius: 8px;
        padding: 0.75rem 1rem;
        justify-content: center;
        min-width: auto;
        width: 100%;
    }
}

/* Setup Warning Styles */
.setup-warning {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.warning-content h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    color: #f59e0b;
    font-size: 1.1rem;
    font-weight: 600;
}

.warning-content p {
    margin: 0 0 1.5rem 0;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.setup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.setup-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .setup-warning {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .warning-content h3 {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .warning-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .setup-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .setup-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
    }
}

/* ✅ MOBILE IMPROVEMENTS - COMPREHENSIVE FIXES */

/* ===== MOBILE-FIRST RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    
    /* ===== BODY & LAYOUT ===== */
    body {
        font-size: 16px; /* Better base font size for mobile */
        line-height: 1.5;
    }
    
    /* ===== SIDEBAR HIDE ON MOBILE ===== */
    .sidebar {
        display: none !important;
    }
    
    /* ===== MAIN CONTENT MOBILE ADJUSTMENTS ===== */
    .main-content {
        margin-left: 0 !important;
        padding: 80px 12px 100px 12px !important; /* Top space for navbar, bottom for nav */
        max-width: 100% !important;
        border-radius: 0 !important;
        background: #f8fafc !important;
    }
    
    /* ===== MOBILE NAVBAR IMPROVEMENTS ===== */
    .mobile-navbar {
        display: flex !important;
        padding: 12px 16px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .mobile-navbar-title {
        font-size: 18px !important;
        font-weight: 700 !important;
    }
    
    .mobile-navbar-by {
        font-size: 13px !important;
        opacity: 0.9 !important;
    }
    
    .mobile-navbar-time {
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    /* ===== MOBILE BOTTOM NAV DARK MODERN ===== */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #1a202c 100%) !important;
        backdrop-filter: blur(25px) !important;
        border-top: 2px solid rgba(255, 193, 7, 0.3) !important;
        padding: 12px 6px env(safe-area-inset-bottom, 10px) 6px !important;
        z-index: 1000 !important;
        box-shadow: 
            0 -8px 32px rgba(0, 0, 0, 0.4),
            0 -4px 16px rgba(255, 193, 7, 0.15),
            inset 0 1px 0 rgba(255, 193, 7, 0.1) !important;
    }
    
    .mobile-bottom-nav::before {
        content: '';
        position: absolute;
        top: -2px;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 193, 7, 0.6) 25%, 
            rgba(255, 193, 7, 1) 50%, 
            rgba(255, 193, 7, 0.6) 75%, 
            transparent 100%) !important;
        animation: shimmerGlow 3s ease-in-out infinite !important;
    }
    
    @keyframes shimmerGlow {
        0%, 100% { opacity: 0.6; transform: scaleX(1); }
        50% { opacity: 1; transform: scaleX(1.05); }
    }
    
    .mobile-bottom-nav .nav-item {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 4px 6px 4px !important;
        text-decoration: none !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        letter-spacing: 0.2px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 10px !important;
        margin: 0 1px !important;
        position: relative !important;
        overflow: hidden !important;
        min-height: 48px !important; /* Touch-friendly size */
    }
    
    .mobile-bottom-nav .nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, 
            rgba(255, 193, 7, 0.1) 0%, 
            rgba(255, 193, 7, 0.05) 50%, 
            transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 12px;
    }
    
    .mobile-bottom-nav .nav-item i {
        font-size: 18px !important;
        margin-bottom: 2px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    .mobile-bottom-nav .nav-item span {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
        position: relative !important;
        z-index: 2 !important;
        text-transform: uppercase !important;
        text-align: center !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    
    .mobile-bottom-nav .nav-item:hover,
    .mobile-bottom-nav .nav-item.active {
        color: #ffc107 !important;
        background: rgba(255, 193, 7, 0.15) !important;
        transform: translateY(-3px) scale(1.05) !important;
        box-shadow: 
            0 8px 16px rgba(0, 0, 0, 0.3),
            0 4px 8px rgba(255, 193, 7, 0.2) !important;
    }
    
    .mobile-bottom-nav .nav-item:hover::before,
    .mobile-bottom-nav .nav-item.active::before {
        opacity: 1 !important;
    }
    
    .mobile-bottom-nav .nav-item:hover i,
    .mobile-bottom-nav .nav-item.active i {
        transform: scale(1.2) rotateY(5deg) !important;
        color: #ffc107 !important;
        filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3)) !important;
    }
    
    .mobile-bottom-nav .nav-item:hover span,
    .mobile-bottom-nav .nav-item.active span {
        color: #ffc107 !important;
        text-shadow: 0 1px 3px rgba(255, 193, 7, 0.3) !important;
        transform: translateY(-1px) !important;
    }
    
    .mobile-bottom-nav .nav-item:active {
        transform: translateY(-1px) scale(0.98) !important;
        transition: all 0.1s ease !important;
    }
    
    /* ===== SEARCH BAR MOBILE SUPER COMPACT ===== */
        .search-bar {
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
        padding: 10px !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 6px rgba(0,0,0,0.08) !important;
    }

    .search-bar input[type="text"],
    .search-bar select {
        width: 100% !important;
        padding: 6px 10px !important;
        font-size: 13px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        background: #f8fafc !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important;
    }
    
    .search-bar input[type="text"]:focus,
    .search-bar select:focus {
        border-color: #4f8cff !important;
        background: white !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(79,140,255,0.1) !important;
    }
    
        /* ===== LIVE COUNTS MOBILE COMPACT ===== */
    .live-counts {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
        padding: 0 4px !important;
    }

    .live-count {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
        border: 1px solid rgba(102, 126, 234, 0.1) !important;
        border-radius: 12px !important;
        padding: 16px 12px !important;
        text-align: center !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        min-height: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .live-count::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 3px !important;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
        border-radius: 12px 12px 0 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .live-count::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
        transition: left 0.6s ease !important;
    }
    
    .live-count:hover::after {
        left: 100% !important;
    }
    
    .live-count:hover {
        transform: translateY(-3px) scale(1.02) !important;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15) !important;
        border-color: rgba(102, 126, 234, 0.3) !important;
    }
    
    .live-count:hover::before {
        background: linear-gradient(90deg, #667eea 0%, #764ba2 0%, #f093fb 100%) !important;
        background-size: 200% 100% !important;
        animation: gradientShift 2s ease infinite !important;
    }
    
    .live-count h3 {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #4a5568 !important;
        margin-bottom: 8px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        line-height: 1.2 !important;
        z-index: 1 !important;
        position: relative !important;
    }

    .count-number {
        font-size: 24px !important;
        font-weight: 800 !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        line-height: 1 !important;
        z-index: 1 !important;
        position: relative !important;
        text-shadow: none !important;
    }
    
    @keyframes gradientShift {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }
    
    /* ===== LIVE COUNTS MOBILE EXTRA SMALL ===== */
    @media (max-width: 480px) {
        .live-counts {
            gap: 10px !important;
            margin-bottom: 14px !important;
            padding: 0 2px !important;
        }
        
        .live-count {
            padding: 14px 10px !important;
            min-height: 70px !important;
            border-radius: 10px !important;
        }
        
        .live-count h3 {
            font-size: 10px !important;
            margin-bottom: 6px !important;
            letter-spacing: 0.4px !important;
        }
        
        .count-number {
            font-size: 20px !important;
        }
    }
    
    @media (max-width: 360px) {
        .live-counts {
            gap: 8px !important;
            margin-bottom: 12px !important;
        }
        
        .live-count {
            padding: 12px 8px !important;
            min-height: 65px !important;
            border-radius: 8px !important;
        }
        
        .live-count h3 {
            font-size: 9px !important;
            margin-bottom: 5px !important;
            letter-spacing: 0.3px !important;
        }
        
        .count-number {
            font-size: 18px !important;
        }
    }
    
    /* ===== CARDS CONTAINER MOBILE SUPER COMPACT ===== */
    .cards-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    
    /* ===== CARD MOBILE SUPER COMPACT ===== */
    .card {
        width: 100% !important;
        padding: 10px 8px !important;
        margin: 0 !important;
        background: white !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
        transition: all 0.2s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    
    .card h4 {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #2d3748 !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }
    
    .card p {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        color: #4a5568 !important;
        word-break: break-word !important;
    }
    
    .card p strong {
        font-weight: 600 !important;
        color: #2d3748 !important;
    }
    
    /* ===== STATUS BADGES MOBILE ===== */
    .status {
        display: inline-block !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .status[style*="color: rgb(0, 255, 0)"],
    .status[style*="color: green"] {
        background: rgba(72, 187, 120, 0.1) !important;
        color: #2f855a !important;
    }
    
    .status[style*="color: orange"] {
        background: rgba(237, 137, 54, 0.1) !important;
        color: #c05621 !important;
    }
    
    .status[style*="color: red"] {
        background: rgba(229, 62, 62, 0.1) !important;
        color: #c53030 !important;
    }
    
    /* ===== CARD ACTIONS MOBILE ===== */
    .card .actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 16px !important;
        padding-top: 16px !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    
    .card .actions button,
    .card .actions a button {
        flex: 1 !important;
        min-width: calc(50% - 4px) !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        border: 2px solid transparent !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        text-align: center !important;
        text-decoration: none !important;
        color: white !important;
        background: #4f8cff !important;
    }
    
    .card .actions button:hover,
    .card .actions a button:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    }
    
    .card .actions .delete-btn {
        background: #e53e3e !important;
        color: white !important;
    }
    
    .card .actions .delete-btn:hover {
        background: #c53030 !important;
    }
    
    .card .actions .delete-btn:disabled {
        background: #a0aec0 !important;
        color: #718096 !important;
        cursor: not-allowed !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* ===== ADD BUTTON MOBILE ===== */
    .add-button {
        position: fixed !important;
        bottom: 90px !important; /* Above bottom nav */
        right: 16px !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #4f8cff 0%, #667eea 100%) !important;
        border: 0 !important;
        box-shadow: 0 4px 12px rgba(79,140,255,0.3) !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        z-index: 999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .add-button:hover {
        transform: scale(1.1) !important;
        box-shadow: 0 6px 16px rgba(79,140,255,0.4) !important;
    }
    
    .add-button span {
        font-size: 24px !important;
        font-weight: 300 !important;
        color: white !important;
        line-height: 1 !important;
    }
    
    /* ===== FORM ELEMENTS MOBILE ===== */
    .form-control,
    .form-select,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        border: 2px solid #e2e8f0 !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        transition: all 0.2s ease !important;
        box-sizing: border-box !important;
    }
    
    .form-control:focus,
    .form-select:focus,
    input:focus,
    textarea:focus,
    select:focus {
        border-color: #4f8cff !important;
        background: white !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(79,140,255,0.1) !important;
    }
    
    /* ===== BUTTONS MOBILE ===== */
    .btn,
    button:not(.add-button) {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        border: 2px solid transparent !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        text-align: center !important;
        text-decoration: none !important;
        display: block !important;
        margin-bottom: 12px !important;
    }
    
    .btn:hover,
    button:hover:not(.add-button) {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    }
    
    /* ===== HEADER MOBILE ===== */
    header {
        display: none !important; /* Hidden on mobile since we have mobile navbar */
    }
    
    /* ===== TEXT IMPROVEMENTS ===== */
    .page-title,
    h1, h2, h3 {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
        word-break: break-word !important;
    }
    
    p, span, div {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* ===== TABLE MOBILE (for pages like arsip) ===== */
    .table-modern,
    table {
        width: 100% !important;
        font-size: 14px !important;
        overflow-x: auto !important;
        display: block !important;
        white-space: nowrap !important;
    }
    
    .table-modern th,
    .table-modern td,
    table th,
    table td {
        padding: 8px 6px !important;
        font-size: 12px !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
    
    /* ===== MODAL MOBILE ===== */
    .custom-modal {
        width: 95% !important;
        max-width: 400px !important;
        margin: 20px auto !important;
        border-radius: 12px !important;
    }
    
    .custom-modal .modal-body {
        padding: 20px 16px !important;
    }
    
    /* ===== UTILITY CLASSES MOBILE ===== */
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-visible {
        display: block !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-p-4 {
        padding: 16px !important;
    }
    
    .mobile-mb-4 {
        margin-bottom: 16px !important;
    }
    
    /* ===== SCROLLBAR MOBILE ===== */
    ::-webkit-scrollbar {
        width: 4px !important;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2) !important;
        border-radius: 2px !important;
    }

    /* ===== FILE ITEMS MOBILE SUPER COMPACT ===== */
    .file-item-modern {
        display: flex !important;
        flex-direction: column !important;
        padding: 8px 10px !important;
        margin-bottom: 8px !important;
        background: rgba(255,255,255,0.9) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(255,255,255,0.4) !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
        transition: all 0.2s ease !important;
    }
    
    .file-item-modern:hover {
        background: rgba(255,255,255,1) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    }
    
    .file-item-modern .file-name {
        font-weight: 600 !important;
        color: #2d3748 !important;
        font-size: 13px !important;
        margin-bottom: 8px !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }
    
    .file-item-modern .file-actions {
        display: flex !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }
    
    .btn-modern-preview,
    .btn-modern-edit,
    .btn-modern-delete,
    .btn-modern-download {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 0.32rem 0.7rem !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
    }
    
    .btn-modern-preview {
        background: linear-gradient(90deg, #4f8cff 0%, #6dd5ed 100%) !important;
        color: #fff !important;
        border: none !important;
    }
    
    .btn-modern-edit {
        background: linear-gradient(90deg, #ffd600 0%, #ffef8f 100%) !important;
        color: #7a5c00 !important;
        border: none !important;
    }
    
    .btn-modern-delete {
        background: linear-gradient(90deg, #ff2323 0%, #ff5e62 100%) !important;
        color: #fff !important;
        border: none !important;
    }
    
    .btn-modern-download {
        background: linear-gradient(135deg, #ed8936, #dd6b20) !important;
        color: white !important;
        border: none !important;
    }

    /* ===== THUMBNAIL GALLERY MOBILE SUPER COMPACT ===== */
    .thumbnail-gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 8px !important;
    }
    
    .thumbnail-gallery-card {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(255,255,255,0.95) !important;
        border-radius: 12px !important;
        padding: 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        transition: all 0.3s ease !important;
        border: 1px solid rgba(255,255,255,0.6) !important;
        overflow: hidden !important;
        min-height: 160px !important;
        justify-content: space-between !important;
    }
    
    .thumbnail-gallery-card:hover {
        background: rgba(255,255,255,1) !important;
        transform: translateY(-3px) scale(1.02) !important;
        box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
        border: 1px solid rgba(102, 126, 234, 0.3) !important;
    }
    
    .thumbnail-gallery-card .thumb-filename {
        font-weight: 600 !important;
        color: #2d3748 !important;
        font-size: 10px !important;
        margin-bottom: 8px !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
        text-align: center !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        height: 24px !important;
    }
    
    .thumbnail-gallery-card .thumb-image {
        width: 100% !important;
        height: 100px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        transition: transform 0.3s ease !important;
    }
    
    .thumbnail-gallery-card:hover .thumb-image {
        transform: scale(1.05) !important;
    }
    
    .thumbnail-gallery-card .thumb-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        margin-top: auto !important;
    }
    
    .thumbnail-gallery-card .btn-edit-thumb,
    .thumbnail-gallery-card .btn-delete-thumb {
        width: 100% !important;
        padding: 6px 4px !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        color: white !important;
        border: none !important;
        border-radius: 6px !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .thumbnail-gallery-card .btn-edit-thumb {
        background: linear-gradient(135deg, #ffd600 0%, #ffb300 50%, #ffe066 100%) !important;
        box-shadow: 0 2px 6px rgba(255, 214, 0, 0.3) !important;
        color: #7a5c00 !important;
    }
    
    .thumbnail-gallery-card .btn-delete-thumb {
        background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #ff6b7a 100%) !important;
        box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3) !important;
    }
    
    .thumbnail-gallery-card .btn-edit-thumb::before,
    .thumbnail-gallery-card .btn-delete-thumb::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .thumbnail-gallery-card .btn-edit-thumb:hover::before,
    .thumbnail-gallery-card .btn-delete-thumb:hover::before {
        left: 100%;
    }
    
    .thumbnail-gallery-card .btn-edit-thumb:hover {
        background: linear-gradient(135deg, #ffe066 0%, #ffd600 50%, #ffb300 100%) !important;
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(255, 214, 0, 0.4) !important;
    }
    
    .thumbnail-gallery-card .btn-delete-thumb:hover {
        background: linear-gradient(135deg, #ff6b7a 0%, #ff4757 50%, #ff3742 100%) !important;
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4) !important;
    }
    
    .thumbnail-gallery-card .btn-edit-thumb i,
    .thumbnail-gallery-card .btn-delete-thumb i {
        margin-right: 3px !important;
        font-size: 8px !important;
    }
    
    /* Extra Small Mobile Screens */
    @media (max-width: 480px) {
        .thumbnail-gallery-grid {
            gap: 8px !important;
            padding: 6px !important;
        }
        
        .thumbnail-gallery-card {
            padding: 8px !important;
            min-height: 140px !important;
        }
        
        .thumbnail-gallery-card .thumb-image {
            height: 80px !important;
        }
        
        .thumbnail-gallery-card .thumb-filename {
            font-size: 9px !important;
            height: 20px !important;
        }
        
        .thumbnail-gallery-card .btn-edit-thumb,
        .thumbnail-gallery-card .btn-delete-thumb {
            padding: 5px 3px !important;
            font-size: 8px !important;
        }
    }
    
    /* Very Small Mobile Screens */
    @media (max-width: 360px) {
        .thumbnail-gallery-grid {
            grid-template-columns: 1fr 1fr !important;
            gap: 6px !important;
        }
        
        .thumbnail-gallery-card {
            padding: 6px !important;
            min-height: 120px !important;
        }
        
        .thumbnail-gallery-card .thumb-image {
            height: 60px !important;
        }
        
        .thumbnail-gallery-card .btn-edit-thumb,
        .thumbnail-gallery-card .btn-delete-thumb {
            padding: 4px 2px !important;
            font-size: 7px !important;
        }
        
        .thumbnail-gallery-card .thumb-filename {
            font-size: 8px !important;
            height: 18px !important;
        }
    }
}

/* ===== TABLET ADJUSTMENTS (768px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        padding: 20px 16px !important;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .search-bar {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    
    .search-bar input[type="text"],
    .search-bar select {
        min-width: 130px !important;
        padding: 7px 11px !important;
        font-size: 14px !important;
        height: 33px !important;
    }
}

/* ===== DESKTOP SAFEGUARDS ===== */
@media (min-width: 769px) {
    .mobile-navbar {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .sidebar {
        display: flex !important;
    }
    
    .main-content {
        margin-left: 280px !important;
    }

    /* ===== THUMBNAIL GALLERY DESKTOP - GRID LAYOUT ===== */
    .thumbnail-gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 20px !important;
        padding: 8px !important;
    }
    
    .thumbnail-gallery-card {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(255,255,255,0.9) !important;
        border-radius: 16px !important;
        padding: 16px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
        transition: all 0.3s ease !important;
        border: 1px solid rgba(255,255,255,0.5) !important;
        min-height: 220px !important;
        justify-content: space-between !important;
        position: relative !important;
    }
    
    .thumbnail-gallery-card:hover {
        background: rgba(255,255,255,1) !important;
        transform: translateY(-5px) scale(1.03) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
        border: 1px solid rgba(102, 126, 234, 0.4) !important;
    }
    
    .thumbnail-gallery-card .thumb-filename {
        font-weight: 600 !important;
        color: #2d3748 !important;
        font-size: 13px !important;
        margin-bottom: 12px !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
        text-align: center !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        height: 32px !important;
    }
    
    .thumbnail-gallery-card .thumb-image {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
        transition: transform 0.3s ease !important;
    }
    
    .thumbnail-gallery-card:hover .thumb-image {
        transform: scale(1.05) !important;
    }
    
    .thumbnail-gallery-card .thumb-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: auto !important;
    }
    
    .thumbnail-gallery-card .btn-edit-thumb,
    .thumbnail-gallery-card .btn-delete-thumb {
        width: 100% !important;
        padding: 10px 8px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .thumbnail-gallery-card .btn-edit-thumb {
        background: linear-gradient(135deg, #ffd600 0%, #ffb300 50%, #ffe066 100%) !important;
        box-shadow: 0 3px 8px rgba(255, 214, 0, 0.3) !important;
        color: #7a5c00 !important;
    }
    
    .thumbnail-gallery-card .btn-delete-thumb {
        background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #ff6b7a 100%) !important;
        box-shadow: 0 3px 8px rgba(255, 71, 87, 0.3) !important;
    }
    
    .thumbnail-gallery-card .btn-edit-thumb:hover {
        background: linear-gradient(135deg, #ffe066 0%, #ffd600 50%, #ffb300 100%) !important;
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 6px 16px rgba(255, 214, 0, 0.4) !important;
    }
    
    .thumbnail-gallery-card .btn-delete-thumb:hover {
        background: linear-gradient(135deg, #ff6b7a 0%, #ff4757 50%, #ff3742 100%) !important;
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 6px 16px rgba(255, 71, 87, 0.4) !important;
    }
    
    .thumbnail-gallery-card .btn-edit-thumb i,
    .thumbnail-gallery-card .btn-delete-thumb i {
        margin-right: 6px !important;
        font-size: 10px !important;
    }
    
    /* Checkbox positioning for desktop */
    .thumbnail-gallery-card .thumb-checkbox {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        z-index: 10 !important;
        transform: scale(1.2) !important;
        accent-color: #667eea !important;
        background: rgba(255,255,255,0.95) !important;
        border-radius: 4px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    }

    /* ===== FILE ITEMS DESKTOP - HORIZONTAL LAYOUT (for other pages) ===== */
    .file-item-modern:not(.thumbnail-gallery-card) {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 16px !important;
        margin-bottom: 12px !important;
        background: rgba(255,255,255,0.7) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }
    
    .file-item-modern:not(.thumbnail-gallery-card) .file-name {
        flex: 1 !important;
        font-weight: 600 !important;
        color: #2d3748 !important;
        font-size: 15px !important;
        margin-bottom: 0 !important;
        margin-right: 16px !important;
        word-break: break-word !important;
        line-height: 1.4 !important;
    }
    
    .file-item-modern:not(.thumbnail-gallery-card) .file-actions {
        display: flex !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        flex-shrink: 0 !important;
        justify-content: flex-end !important;
    }
    
    .btn-modern-preview,
    .btn-modern-edit,
    .btn-modern-delete,
    .btn-modern-download {
        flex: none !important;
        min-width: 80px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        background: linear-gradient(90deg, #ff2323 0%, #ff5e62 100%) !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
    }
}

/* ===== FINAL ULTIMATE OVERRIDE FOR SEARCH BAR - ALL DEVICES ===== */
/* Ensure search bar is ALWAYS small regardless of any other CSS */

/* Universal search bar override */
.search-bar input[type="text"],
.search-bar select {
    padding: 7px 11px !important;
    font-size: 14px !important;
    height: 33px !important;
    min-height: 33px !important;
    max-height: 33px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

/* Mobile specific override with highest priority */
@media (max-width: 768px) {
    .search-bar input[type="text"],
    .search-bar select {
        padding: 7px 11px !important;
        font-size: 14px !important;
        height: 33px !important;
        min-height: 33px !important;
        max-height: 33px !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        background: #f8fafc !important;
    }
    
    /* ===== THUMBNAIL MOBILE OPTIMIZATION - BALANCED SIZE ===== */
    /* Card Header Mobile - Balanced Size - Full Override */
    .video-card-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
        color: white !important;
        padding: 8px 12px !important;
        min-height: 36px !important;
        border-radius: 8px 8px 0 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25) !important;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    
    /* ===== TABLET SMALL - 490px dan sekitarnya ===== */
    @media (max-width: 520px) and (min-width: 481px) {
        .video-card-header {
            padding: 6px 10px !important;
            min-height: 32px !important;
            border-radius: 6px 6px 0 0 !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
        }
        
        .video-card-header .header-left i {
            font-size: 13px !important;
        }
        
        .video-card-header .header-left span {
            font-size: 12px !important;
        }
        
        .search-bar-modern {
            margin-left: 6px !important;
            min-width: 120px !important;
            max-width: 180px !important;
        }
        
        .search-bar-modern input {
            padding: 4px 22px 4px 8px !important;
            font-size: 11px !important;
            min-height: 20px !important;
            border-radius: 8px !important;
        }
        
        .search-bar-modern i {
            right: 5px !important;
            font-size: 9px !important;
        }
    }
    
    /* ===== HP SPECIFIC - EXTRA SMALL ===== */
    @media (max-width: 480px) {
        .video-card-header {
            padding: 4px 6px !important;
            min-height: 24px !important;
            border-radius: 4px 4px 0 0 !important;
        }
        
        .video-card-header .header-left i {
            font-size: 10px !important;
        }
        
        .video-card-header .header-left span {
            font-size: 10px !important;
        }
        
        .search-bar-modern {
            margin-left: 3px !important;
            min-width: 80px !important;
            max-width: 120px !important;
        }
        
        .search-bar-modern input {
            padding: 2px 16px 2px 4px !important;
            font-size: 9px !important;
            min-height: 16px !important;
            border-radius: 6px !important;
        }
        
        .search-bar-modern i {
            right: 3px !important;
            font-size: 7px !important;
        }
    }
    
    /* ===== HP EXTRA SMALL - SANGAT KECIL ===== */
    @media (max-width: 360px) {
        .video-card-header {
            padding: 3px 4px !important;
            min-height: 20px !important;
            border-radius: 3px 3px 0 0 !important;
        }
        
        .video-card-header .header-left i {
            font-size: 9px !important;
        }
        
        .video-card-header .header-left span {
            font-size: 9px !important;
        }
        
        .search-bar-modern {
            margin-left: 2px !important;
            min-width: 60px !important;
            max-width: 100px !important;
        }
        
        .search-bar-modern input {
            padding: 1px 12px 1px 3px !important;
            font-size: 8px !important;
            min-height: 14px !important;
            border-radius: 4px !important;
        }
        
        .search-bar-modern i {
            right: 2px !important;
            font-size: 6px !important;
        }
    }
    
    /* ===== MOBILE NAVBAR HEADER - KECILKAN ===== */
    @media (max-width: 520px) {
        .mobile-navbar {
            padding: 6px 8px !important;
            min-height: 40px !important;
        }
        
        .mobile-navbar-title {
            font-size: 0.9rem !important;
        }
        
        .mobile-navbar-title .rental {
            font-size: 0.85rem !important;
        }
        
        .mobile-navbar-title .live-streaming {
            font-size: 0.8rem !important;
        }
        
        .mobile-navbar-by {
            font-size: 0.7rem !important;
        }
        
        .mobile-navbar-time {
            font-size: 0.65rem !important;
        }
        
        .mobile-navbar-photo {
            width: 24px !important;
            height: 24px !important;
        }
    }
    
    @media (max-width: 480px) {
        .mobile-navbar {
            padding: 6px 8px !important;
            min-height: 40px !important;
        }
        
        .mobile-navbar-title {
            font-size: 0.9rem !important;
        }
        
        .mobile-navbar-title .rental {
            font-size: 0.85rem !important;
        }
        
        .mobile-navbar-title .live-streaming {
            font-size: 0.8rem !important;
        }
        
        .mobile-navbar-by {
            font-size: 0.7rem !important;
        }
        
        .mobile-navbar-time {
            font-size: 0.65rem !important;
        }
        
        .mobile-navbar-photo {
            width: 24px !important;
            height: 24px !important;
        }
    }
    
    /* Desktop header styling */
    @media (min-width: 769px) {
        .video-card-header {
            padding: 12px 20px !important;
            min-height: 50px !important;
            border-radius: 12px 12px 0 0 !important;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
        }
        
        .video-card-header .header-left {
            gap: 12px !important;
        }
        
        .video-card-header .header-left i {
            font-size: 18px !important;
        }
        
        .video-card-header .header-left span {
            font-size: 16px !important;
            letter-spacing: 0.5px !important;
        }
        
        .search-bar-modern {
            margin-left: 16px !important;
            min-width: 250px !important;
            max-width: 350px !important;
        }
        
        .search-bar-modern input {
            padding: 8px 35px 8px 12px !important;
            font-size: 14px !important;
            min-height: 32px !important;
            border-radius: 16px !important;
        }
        
        .search-bar-modern i {
            right: 12px !important;
            font-size: 14px !important;
        }
        
        #deleteSelectedBtn {
            padding: 8px 16px !important;
            font-size: 12px !important;
            min-height: 32px !important;
            margin-left: 12px !important;
            border-radius: 16px !important;
        }
        
        #deleteSelectedBtn i {
            font-size: 12px !important;
            margin-right: 6px !important;
        }
        
        .thumbnail-upload-card .video-card-header {
            padding: 12px 20px !important;
            min-height: 50px !important;
            border-radius: 12px 12px 0 0 !important;
            box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3) !important;
        }
        
        .thumbnail-upload-card .video-card-header .header-left {
            gap: 12px !important;
        }
        
        .thumbnail-upload-card .video-card-header i {
            font-size: 18px !important;
        }
        
        .thumbnail-upload-card .video-card-header span {
            font-size: 16px !important;
            letter-spacing: 0.5px !important;
        }
    }
    
    .video-card-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        animation: shimmerHeader 3s infinite;
    }
    
    @keyframes shimmerHeader {
        0% { left: -100%; }
        50% { left: 100%; }
        100% { left: 100%; }
    }
    
    .video-card-header .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        z-index: 2 !important;
        position: relative !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .video-card-header .header-left i {
        font-size: 14px !important;
        color: #ffd700 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
    }
    
    .video-card-header .header-left span {
        font-size: 13px !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
        letter-spacing: 0.3px !important;
    }
    
    .search-bar-modern {
        margin-left: 8px !important;
        min-width: 140px !important;
        max-width: 220px !important;
        position: relative !important;
        z-index: 2 !important;
        flex-shrink: 0 !important;
    }
    
    .search-bar-modern input {
        padding: 5px 24px 5px 8px !important;
        font-size: 11px !important;
        min-height: 20px !important;
        border-radius: 10px !important;
        width: 100% !important;
        background: rgba(255,255,255,0.95) !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
        transition: all 0.2s ease !important;
    }
    
    .search-bar-modern input:focus {
        background: rgba(255,255,255,1) !important;
        border: 1px solid #667eea !important;
        outline: none !important;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2) !important;
    }
    
    .search-bar-modern i {
        position: absolute !important;
        right: 6px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: #667eea !important;
        font-size: 10px !important;
        z-index: 3 !important;
    }
    
    /* File Actions Mobile - Tombol Extra Kecil */
    .file-item-modern .file-actions {
        gap: 6px !important;
        margin-top: 6px !important;
    }
    
    .file-item-modern .file-actions .btn-modern-edit,
    .file-item-modern .file-actions .btn-modern-delete {
        padding: 4px 8px !important;
        font-size: 11px !important;
        min-height: 28px !important;
        border-radius: 4px !important;
        line-height: 1.2 !important;
    }
    
    .file-item-modern .file-actions .btn-modern-edit i,
    .file-item-modern .file-actions .btn-modern-delete i {
        font-size: 10px !important;
        margin-right: 3px !important;
    }
    
    /* Thumbnail Gallery Grid Container */
    #thumbnailList {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Override file-item-modern for grid cards */
    .thumbnail-gallery-grid .file-item-modern {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        position: relative !important;
    }
    
    /* Desktop override for grid container */
    @media (min-width: 769px) {
        #thumbnailList {
            padding: 12px !important;
            margin: 0 !important;
        }
        
        .thumbnail-gallery-grid .file-item-modern {
            display: flex !important;
            flex-direction: column !important;
            padding: 0 !important;
            margin: 0 !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            position: relative !important;
        }
    }
    
    /* Checkbox positioning */
    .thumbnail-gallery-card .thumb-checkbox {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        z-index: 10 !important;
        transform: scale(1.1) !important;
        accent-color: #667eea !important;
        background: rgba(255,255,255,0.9) !important;
        border-radius: 3px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    }
    
    /* Upload Card Mobile - Enhanced Modern Design */
    .thumbnail-upload-card .video-card-header {
        background: linear-gradient(135deg, #ed8936 0%, #dd6b20 50%, #ff8a4c 100%) !important;
        color: white !important;
        padding: 4px 8px !important;
        min-height: 24px !important;
        border-radius: 6px 6px 0 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
        box-shadow: 0 2px 6px rgba(237, 137, 54, 0.2) !important;
        overflow: hidden !important;
    }
    
    .thumbnail-upload-card .video-card-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        animation: shimmerHeaderUpload 3s infinite;
    }
    
    @keyframes shimmerHeaderUpload {
        0% { left: -100%; }
        50% { left: 100%; }
        100% { left: 100%; }
    }
    
    .thumbnail-upload-card .video-card-header .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        z-index: 2 !important;
        position: relative !important;
    }
    
    .thumbnail-upload-card .video-card-header i {
        font-size: 12px !important;
        color: #ffd700 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
    }
    
    .thumbnail-upload-card .video-card-header span {
        font-size: 11px !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
        letter-spacing: 0.3px !important;
    }
    
    .thumbnail-upload-card .card-body {
        padding: 16px 12px !important;
    }
    
    /* Upload Form Mobile - Compact Layout */
    .thumbnail-upload-card form {
        gap: 12px !important;
    }
    
    .thumbnail-upload-card .form-label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    
    .thumbnail-upload-card form > div:nth-child(2) {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .thumbnail-upload-card form > div:nth-child(2) > button,
    .thumbnail-upload-card form > div:nth-child(2) > div {
        flex: none !important;
        min-width: auto !important;
        width: 100% !important;
    }
    
    .thumbnail-upload-card form > div:last-child {
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 4px !important;
    }
    
    .thumbnail-upload-card form > div:last-child button {
        width: 100% !important;
    }
    
    .thumbnail-upload-card .btn-modern-download,
    .thumbnail-upload-card .btn-modern-delete {
        padding: 6px 12px !important;
        font-size: 12px !important;
        min-height: 32px !important;
    }
    
    /* Delete Selected Button Mobile - Enhanced Style */
    #deleteSelectedBtn {
        padding: 3px 6px !important;
        font-size: 9px !important;
        min-height: 16px !important;
        margin-left: 4px !important;
        border-radius: 8px !important;
        background: linear-gradient(90deg, #ff2323 0%, #ff5e62 100%) !important;
        border: none !important;
        color: white !important;
        font-weight: 600 !important;
        box-shadow: 0 1px 3px rgba(255, 35, 35, 0.3) !important;
        transition: all 0.2s ease !important;
        z-index: 2 !important;
        position: relative !important;
    }
    
    #deleteSelectedBtn:hover {
        background: linear-gradient(90deg, #ff5e62 0%, #ff2323 100%) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 4px rgba(255, 35, 35, 0.4) !important;
    }
    
    #deleteSelectedBtn i {
        font-size: 8px !important;
        margin-right: 2px !important;
    }
    
    /* Checkbox Mobile */
    .thumb-checkbox {
        transform: scale(1.0) !important;
        margin-right: 5px !important;
    }
    
    /* ===== UPLOAD CARD BUTTONS - KEREN BANGET ===== */
    .thumbnail-upload-card #customFileBtn {
        background: linear-gradient(45deg, #667eea, #764ba2) !important;
        border: none !important;
        color: white !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .thumbnail-upload-card #customFileBtn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .thumbnail-upload-card #customFileBtn:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4) !important;
        background: linear-gradient(45deg, #764ba2, #667eea) !important;
    }
    
    .thumbnail-upload-card #customFileBtn:hover::before {
        left: 100%;
    }
    
    .thumbnail-upload-card #customFileBtn:active {
        transform: translateY(-1px) !important;
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3) !important;
    }
    
    /* Upload Button */
    .thumbnail-upload-card button[type="submit"] {
        background: linear-gradient(45deg, #4CAF50, #45a049) !important;
        border: none !important;
        color: white !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .thumbnail-upload-card button[type="submit"]::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .thumbnail-upload-card button[type="submit"]:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 15px 35px rgba(76, 175, 80, 0.4) !important;
        background: linear-gradient(45deg, #45a049, #4CAF50) !important;
    }
    
    .thumbnail-upload-card button[type="submit"]:hover::before {
        left: 100%;
    }
    
    /* Cancel Button */
    .thumbnail-upload-card #cancelUploadBtn {
        background: linear-gradient(45deg, #ff6b6b, #ff5252) !important;
        border: none !important;
        color: white !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .thumbnail-upload-card #cancelUploadBtn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .thumbnail-upload-card #cancelUploadBtn:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4) !important;
        background: linear-gradient(45deg, #ff5252, #ff6b6b) !important;
    }
    
    .thumbnail-upload-card #cancelUploadBtn:hover::before {
        left: 100%;
    }
    
    #fileNameLabel {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #555 !important;
        background: rgba(102, 126, 234, 0.05) !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(102, 126, 234, 0.1) !important;
    }
    
    /* Image Preview Mobile - Lebih Kecil */
    .thumbnail-gallery .file-item-modern > div > div:first-child {
        width: 120px !important;
        height: 68px !important;
    }
    
    .thumbnail-gallery .file-item-modern img {
        border-radius: 6px !important;
    }
}

/* ===== UPLOAD CARD BUTTONS DESKTOP - KEREN BANGET ===== */
@media (min-width: 769px) {
    .thumbnail-upload-card #customFileBtn {
        background: linear-gradient(45deg, #667eea, #764ba2) !important;
        border: none !important;
        color: white !important;
        padding: 16px 32px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        min-height: 56px !important;
    }
    
    .thumbnail-upload-card #customFileBtn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s ease;
    }
    
    .thumbnail-upload-card #customFileBtn:hover {
        transform: translateY(-4px) scale(1.02) !important;
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5) !important;
        background: linear-gradient(45deg, #764ba2, #667eea) !important;
    }
    
    .thumbnail-upload-card #customFileBtn:hover::before {
        left: 100%;
    }
    
    .thumbnail-upload-card #customFileBtn:active {
        transform: translateY(-2px) scale(1.01) !important;
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4) !important;
    }
    
    /* Upload Button Desktop */
    .thumbnail-upload-card button[type="submit"] {
        background: linear-gradient(45deg, #4CAF50, #45a049) !important;
        border: none !important;
        color: white !important;
        padding: 16px 36px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 30px rgba(76, 175, 80, 0.3) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        min-height: 56px !important;
    }
    
    .thumbnail-upload-card button[type="submit"]::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s ease;
    }
    
    .thumbnail-upload-card button[type="submit"]:hover {
        transform: translateY(-4px) scale(1.02) !important;
        box-shadow: 0 20px 40px rgba(76, 175, 80, 0.5) !important;
        background: linear-gradient(45deg, #45a049, #4CAF50) !important;
    }
    
    .thumbnail-upload-card button[type="submit"]:hover::before {
        left: 100%;
    }
    
    /* Cancel Button Desktop */
    .thumbnail-upload-card #cancelUploadBtn {
        background: linear-gradient(45deg, #ff6b6b, #ff5252) !important;
        border: none !important;
        color: white !important;
        padding: 16px 36px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 30px rgba(255, 107, 107, 0.3) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        min-height: 56px !important;
    }
    
    .thumbnail-upload-card #cancelUploadBtn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s ease;
    }
    
    .thumbnail-upload-card #cancelUploadBtn:hover {
        transform: translateY(-4px) scale(1.02) !important;
        box-shadow: 0 20px 40px rgba(255, 107, 107, 0.5) !important;
        background: linear-gradient(45deg, #ff5252, #ff6b6b) !important;
    }
    
    .thumbnail-upload-card #cancelUploadBtn:hover::before {
        left: 100%;
    }
    
    /* File Name Label Desktop */
    .thumbnail-upload-card #fileNameLabel {
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #555 !important;
        background: rgba(102, 126, 234, 0.08) !important;
        padding: 12px 16px !important;
        border-radius: 12px !important;
        border: 2px solid rgba(102, 126, 234, 0.15) !important;
        min-height: 56px !important;
        display: flex !important;
        align-items: center !important;
        transition: all 0.3s ease !important;
    }
    
         .thumbnail-upload-card #fileNameLabel:hover {
         background: rgba(102, 126, 234, 0.12) !important;
         border-color: rgba(102, 126, 234, 0.25) !important;
         transform: translateY(-1px) !important;
     }
     
     /* Upload Card Desktop - Extra Lebar dan Compact */
     .thumbnail-upload-card {
         max-width: 1000px !important;
         width: 95% !important;
         margin: 0 auto 32px auto !important;
     }
     
     .thumbnail-upload-card .card-body {
         padding: 24px 40px 20px 40px !important;
     }
     
     .thumbnail-upload-card .form-label {
         font-size: 16px !important;
         font-weight: 600 !important;
         color: #333 !important;
         margin-bottom: 8px !important;
     }
     
     .thumbnail-upload-card form {
         gap: 16px !important;
     }
     
     .thumbnail-upload-card form > div:nth-child(2) {
         align-items: center !important;
     }
     
     .thumbnail-upload-card form > div:last-child {
         justify-content: center !important;
         margin-top: 8px !important;
     }
     
     .thumbnail-upload-card form > div:last-child button {
         min-width: 150px !important;
     }
 }

/* Tablet override */
@media (min-width: 769px) and (max-width: 1024px) {
    .search-bar input[type="text"],
    .search-bar select {
        padding: 7px 11px !important;
        font-size: 14px !important;
        height: 33px !important;
        min-height: 33px !important;
        max-height: 33px !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
    }
}

/* Desktop override */
@media (min-width: 1025px) {
    .search-bar input[type="text"],
    .search-bar select {
        padding: 7px 11px !important;
        font-size: 14px !important;
        height: 33px !important;
        min-height: 33px !important;
        max-height: 33px !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
    }
}

.thumbnail-gallery-card .btn-edit-thumb,
.thumbnail-gallery-card .btn-delete-thumb {
    border-radius: 10px !important;
    font-size: 0.98rem !important;
    padding: 7px 16px !important;
    font-weight: 600 !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    position: static !important;
    overflow: hidden !important;
}

.thumbnail-gallery-card .btn-edit-thumb {
    background: linear-gradient(90deg, #ffd600 0%, #ffef8f 100%) !important;
    color: #7a5c00 !important;
    border: none !important;
}

.thumbnail-gallery-card .btn-delete-thumb {
    background: linear-gradient(90deg, #ff2323 0%, #ff5e62 100%) !important;
    color: #fff !important;
    border: none !important;
}

.thumbnail-gallery-card .btn-edit-thumb:hover {
    background: linear-gradient(90deg, #ffef8f 0%, #ffd600 100%) !important;
    color: #5a4fcf !important;
}

.thumbnail-gallery-card .btn-delete-thumb:hover {
    background: linear-gradient(90deg, #ff5e62 0%, #ff2323 100%) !important;
    color: #fff !important;
}

.thumbnail-gallery-card .thumb-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 8px !important;
}

.thumbnail-gallery-card .btn-edit-thumb,
.thumbnail-gallery-card .btn-delete-thumb {
    display: inline-flex !important;
    /* properti lain tetap */
}

@media (max-width: 600px) {
  .swal2-popup {
    width: 80vw !important;
    max-width: 90vw !important;
    border-radius: 16px !important;
    padding: 12px 4px !important;
    font-size: 1.02rem !important;
  }
  .swal2-title {
    font-size: 1.12rem !important;
    margin-bottom: 8px !important;
  }
  .swal2-html-container {
    font-size: 1rem !important;
    margin-bottom: 12px !important;
  }
  .swal2-actions {
    margin-top: 12px !important;
    gap: 8px !important;
  }
  .swal2-actions .swal2-confirm,
  .swal2-actions .swal2-cancel {
    border-radius: 10px !important;
    font-size: 1rem !important;
    padding: 10px 0 !important;
    height: 40px !important;
  }
  .swal2-icon {
    font-size: 1.7rem !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }
  .swal2-close {
    font-size: 1.2rem !important;
    top: 6px !important;
    right: 6px !important;
  }
}

.thumbnail-gallery-card .thumb-info {
  display: flex !important;
  flex-direction: row !important;
  gap: 14px !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 10px;
}
.thumbnail-gallery-card .btn-edit-thumb,
.thumbnail-gallery-card .btn-delete-thumb {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.08);
  padding: 7px 18px;
  font-weight: 600;
  font-size: 1em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  background: linear-gradient(90deg, #f1f5f9 0%, #e0e7ef 100%);
  color: #333;
  border: 1.5px solid #e0e7ef;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.thumbnail-gallery-card .btn-edit-thumb:hover {
  background: linear-gradient(90deg, #667eea 0%, #6dd5ed 100%);
  color: #fff;
  border-color: #667eea;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(102,126,234,0.18);
}
.thumbnail-gallery-card .btn-delete-thumb:hover {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
  color: #fff;
  border-color: #ef4444;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(239,68,68,0.18);
}

/* ===== FIX SCROLLING UNTUK FILE DOWNLOAD PAGE ===== */
/* Pastikan scrolling berfungsi di halaman file download */
body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Override untuk main content di file download */
.main-content {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* Override untuk file list modern */
.file-list-modern {
    overflow-y: visible !important;
    max-height: none !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .main-content {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    .file-list-modern {
        overflow-y: visible !important;
        max-height: none !important;
    }
}

/* Desktop specific fixes */
@media (min-width: 769px) {
    .main-content {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    .file-list-modern {
        overflow-y: visible !important;
        max-height: none !important;
    }
}
