/* 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: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    font-weight: 400;
    transition: var(--transition);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: var(--bg-sidebar);
    color: var(--text-white);
    padding: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px var(--shadow-color);
    transition: var(--transition);
}

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

.sidebar a {
    display: flex;
    align-items: center;
    color: var(--text-white);
    text-decoration: none;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    font-weight: 500;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.sidebar a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar .logout-link {
    margin-top: auto;
    background: rgba(255,255,255,0.1);
}

.sidebar .logout-link:hover {
    background: rgba(255,59,48,0.3);
}

/* Mobile Navbar - Modern Design */
.mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-sidebar);
    color: var(--text-white);
    padding: 15px 20px;
    z-index: 999;
    box-shadow: 0 4px 20px var(--shadow-color);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.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;
}

.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: 11px !important;
    font-weight: 600 !important;
    color: #fff !important;
    opacity: 1 !important;
    letter-spacing: 0.2px;
    margin-top: 2px;
    text-shadow: none !important;
}

.mobile-navbar-subscription {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(46, 213, 115, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.mobile-navbar-subscription i {
    margin-right: 4px;
    font-size: 9px;
}

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

.mobile-logout-btn:hover {
    background: rgba(255, 59, 48, 0.3);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.2);
}

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

/* Bottom Navigation for Mobile - Modern Design */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-mobile-nav);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px var(--shadow-color);
    z-index: 1000;
    padding: 12px 0 8px 0;
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    padding: 8px 4px;
    flex: 1;
    transition: var(--transition);
    border-radius: 8px;
    margin: 0 4px;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.mobile-bottom-nav .nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover i,
.mobile-bottom-nav .nav-item.active i {
    transform: scale(1.1);
    color: #667eea;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
    background: var(--bg-primary);
    margin-top: 0 !important;
    transition: var(--transition);
}

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

header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: var(--transition);
}

header h1 small {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 5px;
    transition: var(--transition);
}

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

/* Search Bar - Modern Design */
.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
    margin-top: 0 !important;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-bar input[type="text"]:focus {
    outline: none;
    background: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.search-bar select {
    padding: 16px 20px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar select:focus {
    outline: none;
    background: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}



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

.live-count {
    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);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.live-count h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.count-number {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin: 0;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Card - Modern Design */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    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: var(--card-shadow-hover);
}

.card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: var(--transition);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card p strong {
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
}

.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: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

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

    .main-content {
        margin-left: 0;
        padding: 20px;
        /* Sisakan ruang aman untuk mobile navbar fixed */
        margin-top: 125px !important;
        padding-bottom: 100px !important;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }

    /* Dashboard: navbar lebih tinggi, kasih ruang ekstra agar search bar tidak ketutup */
    .page-dashboard .main-content {
        margin-top: 155px !important;
    }

    .mobile-navbar {
        display: flex;
        align-items: center;
        padding: 7px 16px !important;
    }

    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        height: 72px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .add-button {
        bottom: 90px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .live-counts {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .search-bar {
        flex-direction: column;
        gap: 10px;
    }

    .search-bar input[type="text"],
    .search-bar select {
        width: 100%;
        padding: 14px 18px;
        font-size: 16px;
    }

    .live-count {
        padding: 20px;
        border-radius: 15px;
    }

    .live-count h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }

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

    .cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 18px;
    }

    .card h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

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

    header h1 {
        font-size: 24px;
    }

    .card .actions {
        flex-direction: column;
    }

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

    .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="text"], input[type="password"] {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .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;
    }
}

@media (max-width: 400px) {
    .main-content {
        padding-left: 14px;
        padding-right: 14px;
        margin-top: 140px !important;
    }

    .page-dashboard .main-content {
        margin-top: 175px !important;
    }

    .mobile-navbar {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

/* 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: 12px 16px 12px 40px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(102,126,234,0.07);
    font-size: 15px;
}

.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);
}

.file-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.file-item-modern:hover {
    background: rgba(255,255,255,0.8);
    transform: translateX(5px);
}

.file-item-modern .file-name {
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.file-item-modern .file-actions {
    display: flex;
    gap: 8px;
}

.btn-modern-preview {
    background: linear-gradient(90deg, #4f8cff 0%, #6dd5ed 100%);
    color: #fff;
    border: none;
    border-radius: 1.5rem;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 0.35rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 1px 4px rgba(79,140,255,0.08);
    transition: background 0.2s, transform 0.2s;
}

.btn-modern-preview:hover {
    background: linear-gradient(90deg, #6dd5ed 0%, #4f8cff 100%);
    transform: translateY(-1px) scale(1.03);
}

.btn-modern-edit {
    background: linear-gradient(90deg, #ffd600 0%, #ffef8f 100%);
    color: #7a5c00;
    border: none;
    border-radius: 1.5rem;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 0.35rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 1px 4px rgba(255,214,0,0.08);
    transition: background 0.2s, transform 0.2s;
}

.btn-modern-edit:hover {
    background: linear-gradient(90deg, #ffef8f 0%, #ffd600 100%);
    transform: translateY(-1px) scale(1.03);
}

.btn-modern-delete {
    background: linear-gradient(90deg, #ff2323 0%, #ff5e62 100%);
    color: #fff;
    border: none;
    border-radius: 1.5rem;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 0.35rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 1px 4px rgba(255,59,63,0.08);
    transition: background 0.2s, transform 0.2s;
}

.btn-modern-delete:hover {
    background: linear-gradient(90deg, #ff5e62 0%, #ff2323 100%);
    transform: translateY(-1px) scale(1.03);
}

.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.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Enhanced Mobile Styles */
@media (max-width: 600px) {
    .main-content {
        padding: 8px;
    }
    .video-card-modern {
        padding: 0.5rem;
        border-radius: 1rem;
        margin: 10px 0;
    }
    .video-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 10px 10px 10px;
        font-size: 1.05rem;
        border-radius: 1rem 1rem 0 0;
    }
    .search-bar-modern {
        width: 100%;
        max-width: 100%;
        margin: 10px 0 12px 0;
        position: relative;
        display: flex;
        align-items: center;
        gap: 0;
    }
    .search-bar-modern input {
        width: 100%;
        font-size: 1rem;
        padding: 13px 16px 13px 42px;
        border-radius: 10px;
    }
    .search-bar-modern i {
        left: 14px;
        font-size: 20px;
    }
    .file-list-modern {
        padding: 10px 0 0 0;
    }
    .file-item-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 13px 10px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    .file-item-modern .file-name {
        font-size: 1rem;
        margin-bottom: 4px;
        word-break: break-word;
    }
    .file-item-modern .file-actions {
        width: 100%;
        display: flex;
        gap: 8px;
        justify-content: flex-start;
    }
    .file-item-modern .file-actions .btn,
    .file-item-modern .file-actions button {
        flex: 1;
        min-width: 0;
        font-size: 0.98rem;
        padding: 12px 0;
        border-radius: 8px;
        margin: 0;
    }
    .btn-modern-preview, .btn-modern-edit, .btn-modern-delete, .btn-modern-download {
        font-size: 0.98rem;
        padding: 12px 0;
        border-radius: 8px;
    }
    /* Card download Google Drive - clean modern */
    .video-card-modern:first-child {
        background: #fff;
        color: #333;
        box-shadow: 0 4px 18px rgba(102,126,234,0.10);
        padding: 1.1rem 0.9rem 1.3rem 0.9rem;
        border-radius: 1.3rem;
        margin-bottom: 1.2rem;
        border: none;
    }
    .video-card-modern:first-child .video-card-header {
        background: none;
        color: #5a4fcf;
        font-size: 1.13rem;
        font-weight: 700;
        padding: 0 0 0.5rem 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
    }
    .video-card-modern:first-child .video-card-header i {
        font-size: 1.7rem;
        color: #5a4fcf;
        margin-bottom: 0.2rem;
        margin-right: 0;
    }
    .video-card-modern:first-child .card-body p {
        color: #333;
        opacity: 0.95;
        font-size: 1em;
        margin-bottom: 1.1rem;
        text-align: center;
    }
    .video-card-modern:first-child .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .video-card-modern:first-child .form-control {
        border-radius: 0.9rem !important;
        font-size: 1.08em;
        padding: 13px 14px;
        border: 1.5px solid #e3e8f0;
        box-shadow: none;
        color: #333;
        background: #f8fbff;
        width: 100%;
        margin-bottom: 0.7rem;
    }
    .video-card-modern:first-child .input-group .input-group-text {
        display: none !important;
    }
    .video-card-modern:first-child .btn-modern-download {
        width: 100%;
        font-size: 1.13em;
        font-weight: 700;
        padding: 13px 0;
        border-radius: 0.9rem;
        background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
        color: #fff;
        box-shadow: 0 2px 10px rgba(221,36,118,0.10);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.7rem;
        margin-top: 0.1rem;
        letter-spacing: 0.5px;
        transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    }
    .video-card-modern:first-child .btn-modern-download i {
        font-size: 1.2em;
        margin-right: 0.5rem;
    }
    .video-card-modern:first-child .btn-modern-download:hover {
        background: linear-gradient(90deg, #dd2476 0%, #ff512f 100%);
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 4px 18px rgba(221,36,118,0.13);
    }
    .video-card-modern:first-child .indicator-container {
        margin-top: 1.1rem;
    }
}

.file-item-modern .file-name {
    font-weight: 600;
    color: #2d3748;
    flex: 1;
    word-break: break-word;
}

/* Sidebar Photo and Title Styles */
.sidebar-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar-by {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
}

.sidebar-date {
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 500;
}

.sidebar-time.desktop-only {
    font-size: 0.85em !important;
    font-weight: 700 !important;
    color: #3a2ea4 !important;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 6px 12px;
    margin: 8px 0 12px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(58,46,164,0.06);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px #e0e7ff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
}

/* Mobile Navbar Enhanced */
.mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .mobile-navbar {
        display: flex;
        align-items: center;
        padding: 7px 16px !important;
    }
    
    .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 10px rgba(0,0,0,0.2);
    }
    
    .mobile-navbar-content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .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;
    }
    
    .mobile-navbar-by {
        font-size: 12px;
        opacity: 0.9;
        margin-bottom: 2px;
        font-weight: 500;
    }
    
    .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;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
        margin-top: 95px !important;
        padding-bottom: 100px !important;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }
    
    .sidebar-time.desktop-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-navbar {
        display: none;
    }
    
    .sidebar-photo {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto 15px auto;
        border: 3px solid rgba(255,255,255,0.3);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .sidebar-title {
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 10px;
        line-height: 1.3;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .sidebar-time.desktop-only {
        font-size: 1.25em !important;
        font-weight: 800 !important;
        color: #3a2ea4 !important;
        background: rgba(255,255,255,0.85);
        border-radius: 10px;
        padding: 8px 18px;
        margin: 12px 0 18px 0;
        text-align: center;
        box-shadow: 0 2px 12px rgba(58,46,164,0.08);
        letter-spacing: 0.8px;
        text-shadow: 0 2px 8px #e0e7ff;
        display: block;
        white-space: nowrap;
        overflow: hidden;
    }
}

/* Mobile Bottom Navigation Enhanced */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 12px 0 8px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        height: 72px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .mobile-bottom-nav .nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px;
        padding: 12px 4px;
        min-width: 0;
        min-height: 0;
        white-space: nowrap;
    }
    .mobile-bottom-nav .nav-item i {
        font-size: 22px;
        margin-bottom: 6px;
        display: block;
    }
    .mobile-bottom-nav .nav-item span {
        display: block;
        line-height: 1.1;
        text-align: center;
        font-size: 13px;
        margin: 0;
        padding: 0;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* Modern Create Button */
.btn-create-modern {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-create-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-create-modern:hover, .btn-create-modern:focus {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

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

/* Enhanced mobile responsive */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 15px;
        margin-top: 80px !important;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }
    
    .search-bar {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .search-bar input[type="text"],
    .search-bar select {
        width: 100%;
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .live-counts {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .live-count {
        padding: 20px;
        border-radius: 15px;
    }
    
    .live-count h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .count-number {
        font-size: 28px;
    }
    
    .create-card-hz {
        padding: 20px;
        border-radius: 15px;
        margin: 10px;
    }
    
    .form-col {
        margin-bottom: 20px;
    }
    
    .btn-create-modern {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .form-label, label {
        font-size: 14px;
        margin-bottom: 8px;
        font-weight: 600;
        color: #2d3748;
    }
    
    .form-control, .form-select, input[type="text"], input[type="password"] {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 10px;
        border: 1px solid rgba(102, 126, 234, 0.2);
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(10px);
    }
}

/* CSS Variables for Easy Customization */
:root {
    /* Light Mode Variables */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --transition: all 0.3s ease;
    
    /* Light Mode Colors */
    --bg-primary: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --bg-secondary: rgba(255,255,255,0.9);
    --bg-card: rgba(255,255,255,0.9);
    --bg-sidebar: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-mobile-nav: rgba(255, 255, 255, 0.95);
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-white: #ffffff;
    --border-color: rgba(255,255,255,0.2);
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    /* Dark Mode Gradients */
    --primary-gradient: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%);
    --secondary-gradient: linear-gradient(135deg, #805ad5 0%, #d53f8c 100%);
    --success-gradient: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    --danger-gradient: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    --warning-gradient: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
    
    /* Dark Mode Colors */
    --bg-primary: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --bg-secondary: rgba(26, 32, 44, 0.9);
    --bg-card: rgba(45, 55, 72, 0.9);
    --bg-sidebar: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    --bg-mobile-nav: rgba(26, 32, 44, 0.95);
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --text-white: #ffffff;
    --border-color: rgba(255,255,255,0.1);
    --input-bg: #2d3748;
    --input-border: #4a5568;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    
    /* Dark Mode Shadows */
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

/* Enhanced Animations and Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.8), 0 0 20px rgba(102, 126, 234, 0.4);
    }
}

@keyframes neonGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(102, 126, 234, 0.6);
    }
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--card-shadow-hover);
}

.dark-mode-toggle i {
    font-size: 20px;
    color: var(--text-primary);
    transition: var(--transition);
}

.dark-mode-toggle:hover i {
    color: #667eea;
}

/* Mobile Dark Mode Toggle */
@media (max-width: 768px) {
    .dark-mode-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .dark-mode-toggle i {
        font-size: 18px;
    }
}

/* Dark Mode Specific Styles */
[data-theme="dark"] .card::before {
    background: linear-gradient(90deg, #4c51bf, #553c9a);
}

[data-theme="dark"] .mobile-bottom-nav .nav-item:hover,
[data-theme="dark"] .mobile-bottom-nav .nav-item.active {
    color: #4c51bf;
    background: rgba(76, 81, 191, 0.1);
}

[data-theme="dark"] .mobile-bottom-nav .nav-item:hover i,
[data-theme="dark"] .mobile-bottom-nav .nav-item.active i {
    color: #4c51bf;
}

/* Input Fields Dark Mode */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="password"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="number"]:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: #4c51bf;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.1);
}

/* Button Dark Mode */
[data-theme="dark"] .btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
}

/* Form Dark Mode */
[data-theme="dark"] .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-control {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    border-color: #4c51bf;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.1);
}

/* Table Dark Mode */
[data-theme="dark"] table {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="dark"] th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] td {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] tr:hover {
    background: var(--bg-secondary);
}

/* Modal Dark Mode */
[data-theme="dark"] .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-header {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-footer {
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-title {
    color: var(--text-primary);
}

/* Alert Dark Mode */
[data-theme="dark"] .alert {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Progress Bar Dark Mode */
[data-theme="dark"] .progress {
    background: var(--bg-secondary);
}

[data-theme="dark"] .progress-bar {
    background: var(--primary-gradient);
}

/* Badge Dark Mode */
[data-theme="dark"] .badge {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Dropdown Dark Mode */
[data-theme="dark"] .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Navbar Dark Mode */
[data-theme="dark"] .navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar-brand {
    color: var(--text-primary);
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    color: var(--text-primary);
}

/* Pagination Dark Mode */
[data-theme="dark"] .pagination .page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .pagination .page-link:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background: #4c51bf;
    border-color: #4c51bf;
    color: white;
}

/* Tooltip Dark Mode */
[data-theme="dark"] .tooltip .tooltip-inner {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .tooltip.bs-tooltip-top .arrow::before {
    border-top-color: var(--bg-card);
}

[data-theme="dark"] .tooltip.bs-tooltip-bottom .arrow::before {
    border-bottom-color: var(--bg-card);
}

[data-theme="dark"] .tooltip.bs-tooltip-left .arrow::before {
    border-left-color: var(--bg-card);
}

[data-theme="dark"] .tooltip.bs-tooltip-right .arrow::before {
    border-right-color: var(--bg-card);
}

/* Loading Spinner Dark Mode */
[data-theme="dark"] .spinner-border {
    color: #4c51bf;
}

/* Custom Scrollbar Dark Mode */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection Dark Mode */
[data-theme="dark"] ::selection {
    background: rgba(76, 81, 191, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] ::-moz-selection {
    background: rgba(76, 81, 191, 0.3);
    color: var(--text-primary);
}text-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.3);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to elements */
.card {
    animation: fadeInUp 0.6s ease-out;
}

.live-count {
    animation: slideInLeft 0.6s ease-out;
}

.live-count:nth-child(2) {
    animation-delay: 0.1s;
}

.add-button {
    /* Removed excessive floating animation */
}

.add-button:hover {
    /* Animation defined in the hover section below */
}

/* Enhanced mobile title with subtle effect */
.mobile-navbar-title .live-streaming {
    /* Removed excessive neon animation */
}

/* Subtle status animations - reduced motion */
.status[style*="color: green"] {
    /* Removed excessive animations */
}

.status[style*="color: orange"] {
    /* Removed excessive animations */
}

.status[style*="color: red"] {
    /* Removed excessive animations */
}

/* Enhanced mobile bottom nav icons */
.mobile-bottom-nav .nav-item i {
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Enhanced add button with subtle effect */
.add-button:hover {
    transform: scale(1.05) translateY(-2px);
    transition: all 0.3s ease;
}

/* Enhanced card hover effects - subtle */
.card:hover {
    /* Removed bouncing animation, kept the existing translateY from line 382 */
}

/* Enhanced live count hover effects - subtle */
.live-count:hover {
    /* Removed excessive animation, kept the existing translateY from line 330 */
}

/* Enhanced search bar focus animation - subtle */
.search-bar input[type="text"]:focus,
.search-bar select:focus {
    /* Removed pulse animation, kept the existing transform from line 271 and 290 */
}

/* Desktop enhancements */
@media (min-width: 769px) {
    .sidebar a {
        position: relative;
        overflow: hidden;
    }
    
    .sidebar a::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;
    }
    
    .sidebar a:hover::before {
        left: 100%;
    }
    
    .sidebar-photo {
        transition: all 0.3s ease;
    }
    
    .sidebar-photo:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
*:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Enhanced mobile performance */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .card, .live-count, .mobile-bottom-nav .nav-item {
        will-change: transform;
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Enhanced touch feedback */
    .card:active,
    .live-count:active,
    .mobile-bottom-nav .nav-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Enhanced scrollbar for mobile */
    ::-webkit-scrollbar {
        width: 6px;
    }
    
    ::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.1);
        border-radius: 3px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 3px;
    }
    
    /* Enhanced focus states for mobile */
    .search-bar input[type="text"]:focus,
    .search-bar select:focus,
    .card .actions button:focus {
        outline: 2px solid rgba(102, 126, 234, 0.5);
        outline-offset: 2px;
    }
    
    /* Enhanced loading states for mobile */
    .loading {
        position: relative;
        overflow: hidden;
    }
    
    .loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: shimmer 1.5s infinite;
    }
    
    /* Removed mobile navbar parallax effect */
    
    /* Removed excessive card depth effects */
    
    /* Removed excessive live count depth effects */
    
    /* Removed excessive add button depth effects */
    
    /* Removed all excessive depth effects to fix "goyang-goyang" issue */
    /* Cards and elements now have subtle, stable animations */
}

@media (max-width: 900px) {
    .search-bar-modern {
        min-width: 180px;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    body, html {
        overflow: auto !important;
        position: static !important;
        height: auto !important;
    }
    .modal,
    .modal-dialog,
    .modal-content {
        max-width: 100vw !important;
        width: 100vw !important;
        left: 0 !important;
        margin: 0 !important;
        border-radius: 0.7rem !important;
    }
    .modal-backdrop {
        position: fixed !important;
    }
    .modal,
    .modal-dialog,
    .modal-content,
    .modal-header,
    .modal-body,
    .modal-footer {
        pointer-events: auto !important;
    }
    .video-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .search-bar-modern {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-top: 10px;
        position: relative;
    }
    .search-bar-modern input {
        width: 100%;
        font-size: 15px;
        padding-left: 40px;
    }
    .search-bar-modern i {
        left: 16px;
        top: 50%;
        font-size: 18px;
    }
    .modal {
        overflow-y: auto !important;
        padding: 0 !important;
    }
    .modal-header .btn-close {
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 10;
        width: 44px;
        height: 44px;
        padding: 0;
        background: rgba(0,0,0,0.15);
        border-radius: 50%;
        opacity: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.2rem;
    }
    .modal-header .btn-close:focus {
        outline: 2px solid #667eea;
    }
    .modal-content {
        border-radius: 1rem;
        overflow: visible !important;
        position: relative;
    }
    .modal-body {
        padding: 0;
        background: #000;
        border-radius: 0 0 1rem 1rem;
    }
    .video-preview-modal {
        border-radius: 0 0 1rem 1rem;
        background: #000;
        width: 100%;
        height: 220px;
        object-fit: contain;
    }
    .btn-close-custom { display: none !important; }
}

.modal-backdrop {
  z-index: 1040 !important;
}
.modal {
  z-index: 1050 !important;
}
.modal-dialog,
.modal-content,
.modal-header,
.modal-body,
.modal-footer {
  z-index: 1060 !important;
  pointer-events: auto !important;
}

@media (max-width: 600px) {
  .btn-create-modern {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0;
    margin: 18px 0 0 0 !important;
    padding: 18px 0 !important;
    font-size: 1.15rem !important;
    border-radius: 1.2rem !important;
    display: block;
    box-sizing: border-box;
    text-align: center;
  }
  .create-card-hz {
    padding: 0.7rem 0.2rem !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0;
    margin: 0.5rem auto !important;
    box-sizing: border-box;
  }
  form.d-flex.flex-row {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0;
    gap: 0.7rem !important;
  }
  .arsip-actions {
    flex-direction: column !important;
    gap: 0.7rem !important;
    margin-bottom: 1.5rem !important;
  }
  .arsip-actions button {
    width: 100% !important;
    font-size: 1.08rem !important;
    padding: 14px 0 !important;
    border-radius: 1rem !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .arsip-table-container {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: auto !important;
    margin-bottom: 1.2rem;
  }
  .arsip-table-modern {
    min-width: 600px;
    font-size: 1.01rem;
  }
  .arsip-table-modern th, .arsip-table-modern td {
    padding: 10px 8px !important;
    font-size: 1.01rem !important;
  }
  .arsip-btn-delete {
    width: 100%;
    padding: 12px 0 !important;
    font-size: 1.01rem !important;
    border-radius: 0.8rem !important;
    margin: 0 !important;
    box-sizing: border-box;
    background: linear-gradient(90deg, #ff2323 0%, #ff5e62 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: background 0.2s;
  }
  .arsip-btn-delete:hover {
    background: linear-gradient(90deg, #ff5e62 0%, #ff2323 100%);
  }
  .arsip-container {
    padding: 0.7rem 0.2rem !important;
  }
  .page-title {
    font-size: 1.25rem !important;
    margin-bottom: 1.2rem !important;
  }
  #editFileNameModal .modal-dialog {
    max-width: 98vw !important;
    width: 98vw !important;
    margin: 0 auto !important;
  }
  #editFileNameModal .modal-content {
    border-radius: 1rem !important;
    padding: 0.7rem 0.5rem !important;
    box-sizing: border-box;
  }
  #editFileNameModal .modal-body {
    padding: 1rem 0.2rem !important;
  }
  #editFileNameInput {
    width: 100% !important;
    font-size: 1.1rem !important;
    padding: 14px 12px !important;
    border-radius: 0.8rem !important;
    pointer-events: auto !important;
    background: #fff !important;
    touch-action: manipulation !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -webkit-touch-callout: default !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
  }
  #editFileNameModal,
  #editFileNameModal .modal-dialog,
  #editFileNameModal .modal-content {
    z-index: 12000 !important;
    pointer-events: auto !important;
  }
  .modal-backdrop {
    z-index: 1040 !important;
  }
}

/* Style modern untuk tombol di modal edit nama file - Desktop */
#editFileNameModal .btn-primary {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: all 0.2s ease;
}

#editFileNameModal .btn-primary:hover {
  background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#editFileNameModal .btn-secondary {
  background: linear-gradient(90deg, #6c757d 0%, #495057 100%);
  color: white;
  border: none;
  border-radius: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
  transition: all 0.2s ease;
}

#editFileNameModal .btn-secondary:hover {
  background: linear-gradient(90deg, #495057 0%, #6c757d 100%);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Style untuk modal header yang lebih modern - Desktop */
#editFileNameModal .modal-header {
  background: linear-gradient(90deg, #ffd600 0%, #ffef8f 100%);
  color: #7a5c00;
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
}

#editFileNameModal .modal-title {
  font-weight: 700;
  font-size: 1.1rem;
}

#editFileNameModal .modal-content {
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#editFileNameModal .modal-body {
  padding: 1.5rem 1rem;
}

#editFileNameModal .modal-footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 1rem;
  gap: 0.5rem;
}

.modal-backdrop {
  z-index: 1040 !important;
}

/* PATCH KHUSUS MODAL EDIT FILE DI MOBILE */
@media (max-width: 700px) {
  .modal-backdrop,
  .modal-backdrop.show,
  .modal-backdrop.fade,
  .modal-backdrop.in,
  .modal-backdrop[style],
  .modal-backdrop:not(.show),
  .modal-backdrop:not(.in) {
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .modal,
  .modal.show,
  .modal.fade,
  .modal.in,
  .modal[style] {
    background: transparent !important;
    opacity: 1 !important;
  }
  .modal:not(.show),
  .modal-backdrop:not(.show) {
    pointer-events: none !important;
    display: none !important;
  }
  .modal-backdrop {
    background: transparent !important;
  }
  #editFileNameModal {
    background: transparent !important;
  }
  /* Tombol file download/pratinjau/edit/hapus lebih ramping */
  .file-actions,
  .arsip-actions {
    flex-direction: row !important;
    gap: 0.4rem !important;
    margin-bottom: 0.5rem !important;
    justify-content: flex-start !important;
  }
  .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;
  }
  /* Main content padding bawah agar info storage tidak ketutupan nav */
  .main-content {
    padding-bottom: 90px !important;
  }
  /* Info storage di bawah tetap terlihat */
  .info-storage {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
  }
}

@media (max-width: 700px) {
  .edit-card-hz, .create-card-hz {
    flex-direction: column !important;
    gap: 0.7rem !important;
    padding: 0.7rem 0.2rem !important;
    border-radius: 1rem !important;
    background: rgba(255,255,255,0.95) !important;
    box-shadow: 0 4px 18px rgba(31,38,135,0.10) !important;
    max-width: 98vw !important;
    margin: 0.5rem auto !important;
    display: flex !important;
  }
  .edit-card-hz .form-col, .create-card-hz .form-col {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.2rem !important;
    display: block !important;
  }
}

.create-card-hz {
    max-width: 1200px;
    padding: 2.5rem 2.5rem;
    gap: 3rem;
}

@media (min-width: 769px) {
  .create-card-hz .form-col, .edit-card-hz .form-col {
    flex: 1 1 0;
    min-width: 0;
  }
}

.custom-modal-overlay {
  position: fixed !important;
  z-index: 9999 !important;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.25);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}
.custom-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  min-width: 320px;
  max-width: 90vw;
  padding: 0;
  overflow: hidden;
  animation: popIn 0.2s;
  margin: 0 !important;
  position: relative;
}
@media (max-width: 500px) {
  .custom-modal { min-width: 0; width: 98vw; }
}

/* PATCH PAKSA MODAL ERROR DI TENGAH LAYAR */
body .custom-modal-overlay,
html body .custom-modal-overlay {
  position: fixed !important;
  z-index: 99999 !important;
  left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important;
  background: rgba(0,0,0,0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: all !important;
}
body .custom-modal,
html body .custom-modal {
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
  min-width: 320px !important;
  max-width: 90vw !important;
  padding: 0 !important;
  overflow: hidden !important;
  animation: popIn 0.2s !important;
  margin: 0 !important;
  position: relative !important;
  left: 0 !important; top: 0 !important;
}
@media (max-width: 500px) {
  body .custom-modal, html body .custom-modal { min-width: 0 !important; width: 98vw !important; }
}

@media (max-width: 600px) {
    .video-card-modern:first-child {
        padding: 1.1rem 0.9rem 0.7rem 0.9rem;
    }
    .video-card-modern:first-child .btn-modern-download {
        margin-bottom: 0.2rem;
    }
    .video-card-modern:first-child .indicator-container {
        margin-top: 0.5rem;
        margin-bottom: 0;
    }
    .video-card-modern:first-child {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .video-card-modern:first-child {
        padding-bottom: 0.3rem;
    }
}

.indicator-container { display: none; }
.indicator-container.active { display: inline-block; }

@media (max-width: 600px) {
    .video-card-modern:first-child {
        padding-bottom: 0 !important;
    }
    .video-card-modern:first-child .btn-modern-download {
        margin-bottom: 0 !important;
    }
}

@media (min-width: 769px) {
  .search-bar {
    gap: 18px;
  }
  .search-bar input[type="text"] {
    flex: none;
    width: 60%;
    min-width: 220px;
    max-width: 600px;
  }
  .search-bar select {
    flex: none;
    width: 25%;
    min-width: 120px;
    max-width: 250px;
  }
}

@media (min-width: 769px) {
  .video-card-modern .input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .video-card-modern .input-group .form-control {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    height: 48px;
    border-radius: 13px 0 0 13px;
    font-size: 1.08em;
    padding: 0 18px;
    border: none;
    box-shadow: 0 2px 8px rgba(102,126,234,0.08);
    background: #f8fbff;
  }
  .video-card-modern .input-group .btn-modern-download {
    flex: none;
    width: 160px;
    min-width: 160px;
    max-width: 180px;
    height: 48px;
    border-radius: 0 13px 13px 0;
    font-size: 1.08em;
    font-weight: 700;
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(221,36,118,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: none;
    margin-left: 0;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    padding: 0;
  }
  .video-card-modern .input-group .btn-modern-download span {
    display: inline;
  }
  .video-card-modern .input-group .btn-modern-download i {
    font-size: 1.1em;
    margin-right: 0.4rem;
  }
}

@media (min-width: 769px) {
  .video-card-modern .input-group .form-control {
    border-radius: 13px 0 0 13px !important;
  }
  .video-card-modern .input-group .btn-modern-download {
    border-radius: 0 13px 13px 0 !important;
  }
}

@media (max-width: 768px) {
  .mobile-bottom-nav .nav-item {
    color: #222 !important;
  }
  .mobile-bottom-nav .nav-item i {
    color: #222 !important;
  }
  .mobile-bottom-nav .nav-item.active,
  .mobile-bottom-nav .nav-item:hover {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1);
  }
  .mobile-bottom-nav .nav-item.active i,
  .mobile-bottom-nav .nav-item:hover i {
    color: #667eea !important;
  }
}

@media (max-width: 768px) {
  .mobile-bottom-nav .nav-item {
    transition: background 0.2s, color 0.2s;
  }
  .mobile-bottom-nav .nav-item i,
  .mobile-bottom-nav .nav-item span {
    transition: transform 0.2s, color 0.2s;
  }
  .mobile-bottom-nav .nav-item.active i,
  .mobile-bottom-nav .nav-item:hover i {
    transform: scale(1.12);
    color: #667eea !important;
  }
  .mobile-bottom-nav .nav-item.active span,
  .mobile-bottom-nav .nav-item:hover span {
    color: #667eea !important;
    font-weight: 600;
    transform: translateY(-1px) scale(1.04);
  }
  .mobile-bottom-nav .nav-item.active,
  .mobile-bottom-nav .nav-item:hover {
    background: rgba(102, 126, 234, 0.10);
    box-shadow: none;
  }
}
