/* ==================================================
   Mídia Ponto TV Admin - Consolidated Styles
   ==================================================
   Arquivo único de estilos para melhor manutenção
   Organização: Common → Dashboard → Playlists → Users → Admins → Tenants → Login
   ================================================== */

/* ==================================================
   CSS Custom Properties - Mídia Ponto TV Color Palette
   ================================================== */
:root {
    /* Base Colors */
    --color-black: #000000;
    --color-white: #FFFFFF;

    /* Gray Tones */
    --color-gray-dark: #1C1C1C;
    --color-gray-light: #F2F2F2;

    /* Accent Colors */
    --color-blue-electric: #0066FF;
    --color-orange-neon: #FF6B00;
    --color-yellow-bright: #FFD700;

    /* Gradients - Identidade visual */
    --gradient-primary: linear-gradient(
        135deg,
        #5B0E8B 0%,
        #C4006F 25%,
        #FF004F 50%,
        #FF7A00 75%,
        #FFC400 100%
    );
    --gradient-secondary: var(--gradient-primary);
    --gradient-background: var(--gradient-primary);
}

/* ==================================================
   COMMON STYLES - Estilos compartilhados por todas as páginas
   ================================================== */

/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-background);
    min-height: 100vh;
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    padding-bottom: 60px; /* Espaço para o footer fixo */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container, .container-fluid {
    max-width: 100%;
}

/* Main content wrapper */
.main-content {
    flex: 1;
}

/* Table Responsive Wrapper */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

/* Prevent images from breaking layout */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent long text from breaking layout */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Navbar Brand Logo */
.navbar-brand .brand-logo {
    width: 230px;
    height: auto;
    margin-right: 10px;
    background: var(--color-white);
    padding: 6px 8px;
    border-radius: 8px;
}

/* Form Validation Styles */
.is-valid {
    border-color: var(--color-blue-electric) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25) !important;
}

.is-invalid {
    border-color: var(--color-orange-neon) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25) !important;
}

.field-error {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: var(--color-orange-neon);
}

/* Enhanced Form Controls */
.form-control:focus {
    border-color: var(--color-blue-electric);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
}

/* Animation Effects */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--color-blue-electric);
}

.loading-spinner p {
    margin-top: 15px;
    color: var(--color-gray-dark);
    font-weight: 500;
}

/* ==================================================
   RESPONSIVE DESIGN - GLOBAL MOBILE FIXES
   ================================================== */

/* Tablets and below */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    .navbar-brand .brand-logo {
        width: 180px !important;
        max-width: 180px !important;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card {
        margin-bottom: 15px;
    }

    table {
        font-size: 0.85rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* Mobile devices */
@media (max-width: 576px) {
    body {
        padding-bottom: 100px;
    }

    .navbar {
        padding: 0.5rem 0.5rem !important;
    }

    .navbar-brand .brand-logo {
        width: 150px !important;
        max-width: 150px !important;
    }

    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .card {
        margin-bottom: 10px;
    }

    .card-header {
        padding: 0.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 6px 12px;
        min-width: auto;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-content {
        margin: 0;
    }

    table {
        font-size: 0.75rem;
    }

    table td, table th {
        padding: 0.5rem !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar-brand .brand-logo {
        width: 120px !important;
        max-width: 120px !important;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* ==================================================
   DASHBOARD STYLES
   ================================================== */

.dashboard-page body {
    background: var(--gradient-background);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Modal Styles - Ensure modals appear above other elements */
.dashboard-page .modal {
    z-index: 1060 !important;
    pointer-events: auto !important;
}

.dashboard-page .modal-backdrop {
    z-index: 1055 !important;
    pointer-events: auto !important;
}

.dashboard-page .modal-dialog {
    z-index: 1061 !important;
    pointer-events: auto !important;
}

.dashboard-page .modal-content {
    z-index: 1062 !important;
    pointer-events: auto !important;
}

/* Ensure modal inputs are interactive */
.dashboard-page .modal input,
.dashboard-page .modal textarea,
.dashboard-page .modal select,
.dashboard-page .modal button {
    pointer-events: auto !important;
}

/* Modal Styles - Identidade visual */
.modal-content {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.modal-header {
    background: #000000;
    color: #ffffff;
    border-bottom: none;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    background: #ffffff;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.modal .btn-primary {
    background: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.modal .btn-primary:hover {
    background: #ff2832;
    box-shadow: 0 10px 20px rgba(255, 40, 50, 0.25);
}

.modal .btn-secondary {
    background: #f2f2f2;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    padding: 10px 18px;
}

.modal .btn-secondary:hover {
    background: #e8e8e8;
}

/* Playlists Modals - Identidade visual */
.playlists-page .modal:not(.video-modal) .modal-content {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.playlists-page .modal:not(.video-modal) .modal-header {
    background: #000000;
    color: #ffffff;
    border-bottom: none;
}

.playlists-page .modal:not(.video-modal) .modal-header .btn-close {
    filter: invert(1);
}

.playlists-page .modal:not(.video-modal) .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.playlists-page .modal:not(.video-modal) .btn-primary {
    background: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.playlists-page .modal:not(.video-modal) .btn-primary:hover {
    background: #ff2832;
    box-shadow: 0 10px 20px rgba(255, 40, 50, 0.25);
}

.playlists-page .modal:not(.video-modal) .btn-secondary {
    background: #f2f2f2;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    padding: 10px 18px;
}

.playlists-page .modal:not(.video-modal) .btn-secondary:hover {
    background: #e8e8e8;
}

.dashboard-page .main-container {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 10px 25px rgba(0, 0, 0, 0.08);
    margin: 20px;
    padding: 30px;
    /* backdrop-filter removido para não interferir com modais */
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dashboard-page .navbar {
    background: var(--color-white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-page .navbar-brand .brand-logo {
    width: 230px;
    height: auto;
    margin-right: 10px;
    background: var(--color-white);
    padding: 0;
    border-radius: 0;
}

/* Stats Cards */
.dashboard-page .stats-card {
    background: var(--color-white);
    color: var(--color-black);
    border-radius: 16px;
    padding: 24px 26px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.dashboard-page .stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
    opacity: 1;
}

.dashboard-page .stats-card:hover::before {
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.dashboard-page .stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 40, 50, 0.5);
}

.dashboard-page .stats-card .icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #5B0E8B;
    filter: drop-shadow(0 2px 4px rgba(91, 14, 139, 0.2));
}

.dashboard-page .stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.dashboard-page .stats-card p {
    font-size: 1.1rem;
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* Action Cards */
.dashboard-page .action-card {
    background: var(--color-white);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.dashboard-page .action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 40, 50, 0.5);
}

.dashboard-page .action-card .card-body {
    padding: 30px;
    text-align: center;
}

.dashboard-page .action-card .display-4 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Chart Container */
.dashboard-page .chart-container {
    background: var(--color-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(255, 40, 50, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 40, 50, 0.15);
}

.dashboard-page .chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.dashboard-page .chart-controls {
    background: var(--color-white);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-gray-light);
}

.dashboard-page .chart-legend {
    font-size: 0.875rem;
}

.dashboard-page #statsChart {
    max-height: 400px;
    margin-top: 20px;
}

/* Buttons */
.dashboard-page .btn-modern {
    background: #000000;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--color-white);
}

.dashboard-page .btn-modern:hover {
    background: #ff2832;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 40, 50, 0.35);
    color: var(--color-white);
}

/* Welcome Section */
.dashboard-page .welcome-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 45px;
    background: var(--color-white);
    border-radius: 25px;
    color: var(--color-black);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.dashboard-page .welcome-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.dashboard-page .welcome-section::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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.15)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="10" r="1.5" fill="rgba(255,255,255,0.12)"/><circle cx="90" cy="70" r="1" fill="rgba(255,255,255,0.08)"/></svg>');
    background-size: 100px 100px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(120deg); }
    66% { transform: translateY(5px) rotate(240deg); }
}

.dashboard-page .welcome-section h2 {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #5B0E8B;
    text-shadow: 0 3px 6px rgba(91, 14, 139, 0.25), 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.dashboard-page .welcome-section p {
    font-size: 1.4rem;
    color: var(--color-gray-dark);
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
    animation: slideInUp 1s ease-out 0.2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
.dashboard-page .fade-in {
    animation: fadeIn 0.5s ease-in;
}

.dashboard-page .animate-delay-1 { animation-delay: 0.1s; }
.dashboard-page .animate-delay-2 { animation-delay: 0.2s; }
.dashboard-page .animate-delay-3 { animation-delay: 0.3s; }
.dashboard-page .animate-delay-4 { animation-delay: 0.4s; }

.dashboard-page .stats-card, .dashboard-page .action-card, .dashboard-page .welcome-section {
    animation: fadeInUp 0.8s ease-out both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hover Effects */
.dashboard-page .file-item {
    transition: all 0.3s ease;
}

.dashboard-page .file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ==================================================
   RESPONSIVE DESIGN - DASHBOARD
   ================================================== */

/* Tablet and Mobile Styles */
@media (max-width: 768px) {
    .dashboard-page .main-container {
        margin: 10px;
        padding: 20px;
    }

    .dashboard-page .stats-card {
        margin-bottom: 15px;
        padding: 15px;
        text-align: center;
        transform: scale(0.95);
        transition: transform 0.3s ease;
    }

    .dashboard-page .stats-card:hover {
        transform: scale(1) translateY(-3px);
    }

    .dashboard-page .stats-card .icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .dashboard-page .stats-card h3 {
        font-size: 1.8rem;
        margin: 5px 0;
    }

    .dashboard-page .stats-card p {
        font-size: 0.9rem;
        margin: 0;
    }

    .dashboard-page .welcome-section h2 {
        font-size: 2rem;
        text-align: center;
    }

    .dashboard-page .welcome-section p {
        font-size: 1.1rem;
        text-align: center;
    }

    .dashboard-page .chart-container {
        padding: 15px;
        margin-bottom: 20px;
    }

    .dashboard-page .chart-controls {
        padding: 10px;
    }

    .dashboard-page .chart-controls .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .dashboard-page .chart-controls .btn {
        margin-bottom: 5px;
        border-radius: 6px !important;
    }

    .dashboard-page .chart-legend {
        text-align: center;
        margin-top: 10px;
        font-size: 0.8rem;
    }

    .dashboard-page #statsChart {
        max-height: 300px;
        margin-top: 15px;
    }

    .dashboard-page .action-card .card-body {
        padding: 15px;
    }

    .dashboard-page .action-card .display-4 {
        font-size: 2rem;
    }

    .dashboard-page .action-card h5 {
        font-size: 1.1rem;
    }

    .dashboard-page .action-card .card-text {
        font-size: 0.9rem;
    }

    .dashboard-page .btn-modern {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-height: 44px; /* Touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-page .playlist-card,
    .dashboard-page .file-card {
        margin-bottom: 15px;
    }

    .dashboard-page .file-item .btn-group {
        flex-direction: column;
    }

    .dashboard-page .file-item .btn {
        margin-bottom: 2px;
        border-radius: 4px !important;
    }

    .dashboard-page .loading-spinner {
        padding: 30px 15px;
    }

    .dashboard-page .loading-spinner .spinner-border {
        width: 2.5rem;
        height: 2.5rem;
    }

    .dashboard-page .loading-spinner p {
        font-size: 0.9rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 576px) {
    .dashboard-page .main-container {
        margin: 5px;
        padding: 15px;
    }

    .dashboard-page .welcome-section h2 {
        font-size: 1.8rem;
    }

    .dashboard-page .stats-card {
        padding: 12px;
        text-align: center;
    }

    .dashboard-page .stats-card .icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .dashboard-page .stats-card h3 {
        font-size: 1.5rem;
    }

    .dashboard-page .stats-card p {
        font-size: 0.8rem;
    }

    .dashboard-page .chart-container {
        padding: 10px;
    }

    .dashboard-page .action-card {
        margin-bottom: 15px;
    }

    .dashboard-page .action-card .display-4 {
        font-size: 1.8rem;
    }

    .dashboard-page .files-grid {
        gap: 10px;
    }

    .dashboard-page .file-card .card-body {
        padding: 10px;
    }

    .dashboard-page .file-icon {
        font-size: 1.5rem;
    }
}

/* Extra Small Mobile Styles */
@media (max-width: 480px) {
    .dashboard-page .navbar-brand {
        font-size: 1rem;
    }

    .dashboard-page .navbar-brand .brand-logo {
        width: 32px;
        padding: 4px 6px;
    }

    .dashboard-page .main-container {
        padding: 10px;
    }

    .dashboard-page .welcome-section h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .dashboard-page .stats-card h3 {
        font-size: 1.3rem;
    }

    .dashboard-page .btn-modern {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Button Styles */
.btn-modern {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--color-white);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
    color: var(--color-white);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--gradient-secondary);
}

/* Card Styles */
.card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: var(--color-white);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Table Styles */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    font-weight: 600;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: 2px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.alert-success {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-black);
    border-color: var(--color-blue-electric);
    border-left: 4px solid var(--color-blue-electric);
}

.alert-danger {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-black);
    border-color: var(--color-orange-neon);
    border-left: 4px solid var(--color-orange-neon);
}

.alert-warning {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-black);
    border-color: var(--color-yellow-bright);
    border-left: 4px solid var(--color-yellow-bright);
}

.alert-info {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-black);
    border-color: var(--color-blue-electric);
    border-left: 4px solid var(--color-blue-electric);
}

/* Badge Styles */
.badge {
    font-weight: 500;
}

.badge-primary {
    background: var(--gradient-primary);
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.user-info span {
    color: rgba(0, 0, 0, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
}

.notification-container {
    position: relative;
    cursor: pointer;
}

.notification-icon {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
    transition: color 0.3s ease;
}

.notification-icon:hover {
    color: #000;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-orange-neon);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-blue-electric);
}

.btn-logout {
    background: var(--color-orange-neon);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: #e55a00;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
}

/* Navbar Custom Spacing */
.navbar-menu-spacing {
    margin-left: 24px !important;
    gap: 6px;
}

.dashboard-page .navbar-brand {
    white-space: nowrap;
}

.dashboard-page .navbar-brand .brand-name {
    font-weight: 600;
    color: #000000;
}

.dashboard-page .navbar .nav-link {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    font-size: 0.95rem;
}

.dashboard-page .navbar .nav-link {
    color: rgba(0, 0, 0, 0.8) !important;
}

.dashboard-page .navbar .nav-link:hover,
.dashboard-page .navbar .nav-link.active {
    color: #000000 !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-menu-spacing {
        margin-left: 20px !important;
    }
}

@media (max-width: 768px) {
    .navbar-menu-spacing {
        margin-left: 0 !important;
        margin-top: 15px;
    }
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 3px solid var(--color-blue-electric);
    z-index: 1000;
    height: 60px;
}

.footer .container {
    padding: 20px 0;
}

.footer span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer .container {
        padding: 15px 0;
    }

    .footer span {
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-gradient {
    color: var(--color-blue-electric);
}

.shadow-modern {
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

/* Status Colors */
.text-success { color: var(--color-blue-electric) !important; }
.text-danger { color: var(--color-orange-neon) !important; }
.text-warning { color: var(--color-yellow-bright) !important; }
.text-primary { color: var(--color-blue-electric) !important; }

/* ==================================================
   PLAYLISTS STYLES
   ================================================== */

.playlists-page .page-header-title-bar {
    background: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: 16px 0;
    position: relative;
    overflow: hidden;
}

.playlists-page .page-header-title-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.playlists-page .page-header-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlists-page .main-container {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 10px 25px rgba(0, 0, 0, 0.08);
    margin: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.playlists-page .playlists-actions-bar {
    margin-top: 12px;
}

.playlists-page .report-header {
    background: #ffffff;
    color: #000000;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.playlists-page .report-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.playlists-page .report-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 2.2rem;
    color: #000000;
}

.playlists-page .report-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
    font-size: 1.05rem;
}

.playlists-page .report-header .btn-outline-light {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.2);
    background: #ffffff;
    border-radius: 999px;
    padding: 10px 16px;
}

.playlists-page .report-header .btn-outline-light:hover {
    color: #ffffff;
    background: #ff2832;
    border-color: #ff2832;
}

/* Stats Cards */
.playlists-page .stats-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.playlists-page .stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.playlists-page .stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.playlists-page .stats-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 1rem;
    background: #f6f0fb;
    color: #5B0E8B;
}

.playlists-page .stats-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
}

.playlists-page .stats-content p {
    margin: 0.25rem 0 0 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Playlists Grid */
.playlists-page .playlists-container {
    margin-top: 2rem;
}

.playlists-page .btn-primary {
    background: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.playlists-page .btn-primary:hover {
    background: #ff2832;
    box-shadow: 0 10px 20px rgba(255, 40, 50, 0.25);
}

.playlists-page .btn-outline-info {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
    padding: 10px 16px;
    background: #ffffff;
}

.playlists-page .btn-outline-info:hover {
    color: #ffffff;
    background: #ff2832;
    border-color: #ff2832;
}

.playlists-page .playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.playlists-page .playlist-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.playlists-page .playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.playlists-page .playlist-header {
    background: #000000;
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.playlists-page .playlist-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
    margin-right: 1rem;
}

.playlists-page .playlist-actions {
    display: flex;
    gap: 0.5rem;
}

.playlists-page .playlist-actions .btn {
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: transparent;
}

.playlists-page .playlist-actions .btn:hover {
    background: #ff2832;
    border-color: #ff2832;
    color: #ffffff;
}

.playlists-page .playlist-content {
    padding: 1.5rem;
}

.playlists-page .playlist-description {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.playlists-page .playlist-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.playlists-page .stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #666;
}

.playlists-page .stat-item i {
    color: #5B0E8B;
}

.playlists-page .playlist-dates {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

/* Empty State */
.playlists-page .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    border: 2px dashed #e0e0e0;
}

.playlists-page .empty-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.playlists-page .empty-state h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.playlists-page .empty-state p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Upload Area */
.playlists-page .upload-section {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.playlists-page .upload-section:hover,
.playlists-page .upload-area.dragover {
    border-color: #667eea;
    background: #f8f9ff;
}

.playlists-page .upload-content {
    color: #666;
}

.playlists-page .upload-icon {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
    display: block;
}

.playlists-page .upload-link {
    color: #667eea;
    cursor: pointer;
    font-weight: 500;
}

.playlists-page .upload-link:hover {
    text-decoration: underline;
}

/* Media Grid */
.playlists-page .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    min-height: 200px;
}

.playlists-page .media-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    cursor: move;
}

.playlists-page .media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.playlists-page .media-preview {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
}

.playlists-page .media-preview img,
.playlists-page .media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlists-page .media-info {
    padding: 1rem;
    flex: 1;
}

.playlists-page .media-info h6 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlists-page .media-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.playlists-page .meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #666;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.playlists-page .media-actions {
    padding: 0.5rem 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

.playlists-page .drag-handle {
    padding: 0.5rem;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    color: #999;
    cursor: move;
}

.playlists-page .drag-handle:hover {
    background: #e9ecef;
}

/* Empty Media State */
.playlists-page .empty-media {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.playlists-page .empty-media .empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Toast Notifications */
.playlists-page .toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

.playlists-page .toast-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.playlists-page .toast-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.playlists-page .toast-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal Enhancements */
.playlists-page .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.playlists-page .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

.playlists-page .modal-header .btn-close {
    filter: invert(1);
}

.playlists-page .modal-body {
    padding: 2rem;
}

.playlists-page .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1.5rem 2rem;
}

/* Form Enhancements */
.playlists-page .form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.playlists-page .form-control:focus {
    border-color: #5B0E8B;
    box-shadow: 0 0 0 0.2rem rgba(91, 14, 139, 0.2);
}

.playlists-page .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Button Enhancements */
.playlists-page .btn-modern {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.playlists-page .btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.playlists-page .btn-primary {
    background: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.playlists-page .btn-primary:hover {
    background: #ff2832;
    box-shadow: 0 10px 20px rgba(255, 40, 50, 0.25);
}

/* ==================================================
   RESPONSIVE DESIGN - PLAYLISTS
   ================================================== */

@media (max-width: 768px) {
    .playlists-page .page-header {
        padding: 1.5rem;
    }

    .playlists-page .page-header h2 {
        font-size: 2rem;
    }

    .playlists-page .playlists-grid {
        grid-template-columns: 1fr;
    }

    .playlists-page .stats-card {
        padding: 1rem;
    }

    .playlists-page .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .playlists-page .playlist-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .playlists-page .playlist-actions {
        align-self: flex-end;
    }

    .playlists-page .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .playlists-page .playlists-grid {
        grid-template-columns: 1fr;
    }

    .playlists-page .media-grid {
        grid-template-columns: 1fr;
    }

    .playlists-page .stats-card {
        flex-direction: column;
        text-align: center;
    }

    .playlists-page .stats-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* ==================================================
   USERS STYLES
   ================================================== */

.users-page body {
    background: var(--color-gray-light);
}

.users-page .main-container {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 10px 25px rgba(0, 0, 0, 0.08);
    margin: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.users-page .card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.users-page .btn-primary {
    background: #000000;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.users-page .btn-primary:hover {
    background: #ff2832;
    box-shadow: 0 10px 20px rgba(255, 40, 50, 0.25);
}

.users-page .main-container .mb-4 {
    margin-top: 12px;
}

.users-page .report-header {
    background: #ffffff;
    color: #000000;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.users-page .report-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.users-page .report-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 2.2rem;
    color: #000000;
}

.users-page .report-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
    font-size: 1.05rem;
}

.users-page .report-header .btn-outline-light {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.2);
    background: #ffffff;
    border-radius: 999px;
    padding: 10px 16px;
}

.users-page .report-header .btn-outline-light:hover {
    color: #ffffff;
    background: #ff2832;
    border-color: #ff2832;
}

.users-page .page-header-title-bar {
    background: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: 16px 0;
    position: relative;
    overflow: hidden;
}

.users-page .page-header-title-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.users-page .page-header-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.users-page .stats-card {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.users-page .stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.users-page .stats-card .icon {
    font-size: 2.4rem;
    color: #5B0E8B;
    margin-bottom: 10px;
}

.users-page .stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.users-page .stats-card p {
    margin: 6px 0 0 0;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.users-page .table thead th {
    background: #000000;
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.users-page .table tbody td {
    color: #111111;
}

.users-page .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

.users-page .table-hover tbody tr:hover {
    background-color: rgba(255, 40, 50, 0.06);
}

/* ==================================================
   ADMINS STYLES
   ================================================== */

.admins-page body {
    background: var(--color-gray-light);
}

.admins-page .navbar-brand svg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.admins-page .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admins-page .btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.admins-page .btn-primary:hover {
    background: var(--gradient-secondary);
}

/* ==================================================
   TV ASSIGNMENTS STYLES
   ================================================== */

.tv-assignments-page body {
    background: var(--color-gray-light);
}

.tv-assignments-page .main-container {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 10px 25px rgba(0, 0, 0, 0.08);
    margin: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tv-assignments-page .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tv-assignments-page .report-header {
    background: #ffffff;
    color: #000000;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.tv-assignments-page .report-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.tv-assignments-page .report-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 2.2rem;
    color: #000000;
}

.tv-assignments-page .report-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
    font-size: 1.05rem;
}

.tv-assignments-page .card-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.tv-assignments-page .card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.tv-assignments-page .card-title {
    color: #000000;
    font-weight: 700;
}

.tv-assignments-page .btn-primary {
    background: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 8px 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.tv-assignments-page .btn-primary:hover {
    background: #ff2832;
    box-shadow: 0 10px 20px rgba(255, 40, 50, 0.25);
}

.tv-assignments-page .report-header .btn-outline-light {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.2);
    background: #ffffff;
    border-radius: 999px;
    padding: 10px 16px;
}

.tv-assignments-page .report-header .btn-outline-light:hover {
    color: #ffffff;
    background: #ff2832;
    border-color: #ff2832;
}

.tv-assignments-page .table thead th {
    background: #000000;
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.tv-assignments-page .table tbody td {
    color: #111111;
}

.tv-assignments-page .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

.tv-assignments-page .table-hover tbody tr:hover {
    background-color: rgba(255, 40, 50, 0.06);
}

/* ==================================================
   TENANTS STYLES
   ================================================== */

.tenants-page body {
    background: var(--color-gray-light);
}

.tenants-page .main-container {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 10px 25px rgba(0, 0, 0, 0.08);
    margin: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tenants-page .report-header {
    background: #ffffff;
    color: #000000;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.tenants-page .report-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.tenants-page .report-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 2.2rem;
    color: #000000;
}

.tenants-page .report-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
    font-size: 1.05rem;
}

.tenants-page .report-header .btn-outline-light {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.2);
    background: #ffffff;
    border-radius: 999px;
    padding: 10px 16px;
}

.tenants-page .report-header .btn-outline-light:hover {
    color: #ffffff;
    background: #ff2832;
    border-color: #ff2832;
}


.tenants-page .page-header-title-bar {
    background: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: 16px 0;
    position: relative;
    overflow: hidden;
}

.tenants-page .page-header-title-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.tenants-page .page-header-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenants-page .card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tenants-page .btn-primary {
    background: #000000;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tenants-page .btn-primary:hover {
    background: #ff2832;
    box-shadow: 0 10px 20px rgba(255, 40, 50, 0.25);
}

.tenants-page .main-container .mb-4 {
    margin-top: 12px;
}

.tenants-page .table thead th {
    background: #000000;
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.tenants-page .table tbody td {
    color: #111111;
}

.tenants-page .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

.tenants-page .table-hover tbody tr:hover {
    background-color: rgba(255, 40, 50, 0.06);
}

.tenants-page .stats-card {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.tenants-page .stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B0E8B, #C4006F, #FF004F, #FF7A00, #FFC400);
}

.tenants-page .stats-card .icon {
    font-size: 2.4rem;
    color: #5B0E8B;
    margin-bottom: 10px;
}

.tenants-page .stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.tenants-page .stats-card p {
    margin: 6px 0 0 0;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

/* ==================================================
   RESPONSIVE DESIGN - GLOBAL ADMIN OVERHAUL
   ================================================== */

@media (max-width: 992px) {
    .navbar .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-collapse {
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        margin-top: 10px;
        padding: 10px 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .navbar-menu-spacing {
        margin-left: 0 !important;
        gap: 2px;
        width: 100%;
    }

    .user-info {
        width: 100%;
        margin-top: 10px;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .user-info span {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-page .main-container,
    .playlists-page .main-container,
    .users-page .main-container,
    .tv-assignments-page .main-container,
    .tenants-page .main-container {
        margin: 10px;
        padding: 16px;
        border-radius: 14px;
    }

    .dashboard-page .report-header,
    .users-page .report-header,
    .tv-assignments-page .report-header,
    .tenants-page .report-header {
        padding: 1.25rem;
    }

    .dashboard-page .report-header h2,
    .users-page .report-header h2,
    .tv-assignments-page .report-header h2,
    .tenants-page .report-header h2 {
        font-size: 1.55rem;
    }

    .table-responsive {
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive .table {
        min-width: 680px;
        margin-bottom: 0;
    }

    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .btn-group .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 576px) {
    .dashboard-page .main-container,
    .playlists-page .main-container,
    .users-page .main-container,
    .tv-assignments-page .main-container,
    .tenants-page .main-container {
        margin: 8px;
        padding: 12px;
    }

    .dashboard-page .page-header-title,
    .users-page .page-header-title,
    .tenants-page .page-header-title {
        font-size: 1.2rem;
    }

    .table-responsive .table {
        min-width: 560px;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .form-control,
    .form-select,
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* ==================================================
   LOGIN STYLES
   ================================================== */

body.login-page {
    background: var(--gradient-background);
    min-height: 100dvh;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    overflow-x: hidden;
    overflow-y: auto;
}

.login-page .footer {
    display: none;
}

.login-page .login-shell {
    width: 100%;
    max-width: 420px;
    min-height: auto;
    display: block;
    padding: 16px;
    margin: 0 auto;
}

.login-page .login-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    max-width: 420px;
    width: min(100%, 420px);
    flex: 0 0 auto;
    margin: 0 auto;
    background: var(--color-white);
}

.login-page .card-header {
    background: var(--color-white);
    color: var(--color-black);
    text-align: center;
    padding: 2.2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.login-page .card-header h3 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.login-page .card-header p {
    color: rgba(0, 0, 0, 0.6);
}

.login-page .logo {
    width: auto;
    max-width: min(230px, 100%);
    max-height: none;
    height: auto;
    margin: 0 auto 0.75rem;
    display: block;
    object-fit: contain;
    object-position: center;
}

body.login-page .login-shell,
body.login-page .login-card,
body.login-page .card-header,
body.login-page .card-body {
    box-sizing: border-box;
}

.login-page .btn-login {
    background: #000000;
    border: none;
    border-radius: 25px;
    padding: 12px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
    color: var(--color-white);
}

.login-page .btn-login:hover {
    background: #ff2832;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 40, 50, 0.3);
    color: var(--color-white);
}

.login-page .form-control {
    border-radius: 0 25px 25px 0;
    padding: 12px 20px;
    border-left: none;
    border-color: #e0e0e0;
}

.login-page .input-group-text {
    border-radius: 25px 0 0 25px;
    background: var(--color-gray-light);
    border: 1px solid #e0e0e0;
    border-right: none;
    color: #666666;
}

.login-page .input-group:focus-within .input-group-text {
    border-color: #9c27b0;
    color: #9c27b0;
}

.login-page .input-group:focus-within .form-control {
    border-color: #9c27b0;
    box-shadow: 0 0 0 0.2rem rgba(156, 39, 176, 0.2);
}

/* ==================================================
   RESPONSIVE DESIGN - LOGIN
   ================================================== */

@media (max-width: 768px) {
    .login-page .login-shell {
        padding: 14px;
        max-width: 400px;
    }

    .login-page .login-card {
        max-width: 400px;
        width: min(100%, 400px);
    }

    .login-page .logo {
        max-width: 180px;
        height: auto;
    }
}

@media (max-width: 576px) {
    body.login-page {
        min-height: 100svh;
        padding: 0 8px !important;
    }

    .login-page .login-shell {
        min-height: auto;
        padding: 12px 0;
        max-width: 360px;
    }

    .login-page .login-card {
        max-width: 360px;
        width: min(100%, 360px);
    }

    .login-page .card-header {
        padding: 1.5rem 1rem;
    }

    .login-page .logo {
        max-width: 160px;
        height: auto;
    }

    .login-page .card-header h3 {
        font-size: 1.5rem;
    }

    .login-page .card-body {
        padding: 1.5rem 1rem;
    }

    .login-page .form-control,
    .login-page .input-group-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .login-page .login-shell {
        padding: 8px;
        max-width: 320px;
    }

    .login-page .login-card {
        max-width: 320px;
        width: min(100%, 320px);
    }

    .login-page .card-header {
        padding: 1rem 0.75rem;
    }

    .login-page .logo {
        max-width: 140px;
        height: auto;
    }


/* Hard override to prevent any logo distortion from external styles */
body.login-page img.logo {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    transform: none !important;
}
    .login-page .card-body {
        padding: 1rem 0.75rem;
    }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .loading-spinner {
        padding: 30px 15px;
    }

    .loading-spinner .spinner-border {
        width: 2.5rem;
        height: 2.5rem;
    }

    .loading-spinner p {
        font-size: 0.9rem;
    }

    .btn-modern {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-info {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .user-info span {
        font-size: 0.85rem;
    }

    .btn-logout {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}