/* Galactic Edition Theme - SysDash Colors */
:root {
    /* Cores principais do tema Galactic Edition */
    --bg-primary: #0a0e1a;
    --bg-secondary: #141b2d;
    --accent: #00ff88;
    --danger: #ff4444;
    --success: #44ff44;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    
    /* Preservar cores específicas do CSS original */
    --bg-tertiary: #1a1f35;
    --border: #2a3550;
    --male-color: #4a90e2;
    --female-color: #e24a90;
}

/* Fonte: Inter (ou Orbitron para vibe sci-fi completa) */
/* @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap'); */

/* Fundo estilo céu estelar - Galactic Edition */
body {
    background: 
        radial-gradient(ellipse at top, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 100, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0e1a 0%, #141b2d 50%, #0a0e1a 100%);
    background-attachment: fixed;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

/* LOGO AREA OVERRIDE - HIGHEST PRIORITY */
[class*="logo-area"] {
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    background-attachment: initial !important;
    background-blend-mode: initial !important;
    background-clip: initial !important;
    background-origin: initial !important;
    background-position: initial !important;
    background-repeat: initial !important;
    background-size: initial !important;
}

[class*="logo-area"] * {
    background: inherit !important;
    background-image: none !important;
    background-color: inherit !important;
}

/* Custom styles to complement Bootstrap theme */
.video-js {
    width: 100%;
    max-width: 100%;
}

.video-js.vjs-fluid {
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

/* Video preview container for table */
.video-preview-container {
    width: 100%;
    max-width: 180px; /* Limitar a largura máxima do container */
    margin: 0 auto;
}

/* Video filename display */
.video-filename {
    background-color: var(--bs-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    word-break: break-all;
    max-width: 100%;
    display: inline-block;
}

.video-preview-container .video-js {
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* Manter proporção 16:9 */
}

/* Sidebar styles */
.sidebar {
    width: 280px;
    min-height: 100vh;
    border-right: 1px solid var(--bs-gray-700);
    background: 
        radial-gradient(ellipse at top, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 100, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0e1a 0%, #141b2d 50%, #0a0e1a 100%);
    background-attachment: fixed;
}

/* Mobile sidebar adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1045;
        width: 100%;
        max-width: 280px;
        height: 100vh;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        background: 
            radial-gradient(ellipse at top, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at bottom, rgba(0, 100, 255, 0.1) 0%, transparent 50%),
            linear-gradient(180deg, #0a0e1a 0%, #141b2d 50%, #0a0e1a 100%);
        background-attachment: fixed;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .navbar-toggler {
        padding: 0.5rem;
        background-color: var(--bs-dark);
        border: 1px solid var(--bs-gray-700);
        border-radius: 4px;
    }

    .navbar-toggler i {
        font-size: 1.5rem;
        color: var(--bs-light);
    }
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar .nav-link:hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 100, 255, 0.2) 100%);
    color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    border-left: 3px solid var(--accent);
}

.sidebar-header {
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 26, 0.5);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.1);
}

/* Main content area */
.main-content {
    min-height: 100vh;
    background: transparent;
}

/* Dashboard Header - Galactic Edition */
.dashboard-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--accent);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.dashboard-title {
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
}

/* Modern Stat Cards */
.stat-card {
    background: rgba(20, 27, 45, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(0, 255, 136, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3), 0 0 30px rgba(0, 255, 136, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 136, 0.4);
}

.stat-card-body {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-right: 1rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.stat-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.stat-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.stat-trend {
    font-size: 1.2rem;
}

/* Card Color Variants */
.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-primary .stat-number {
    color: #667eea;
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.stat-card-success .stat-number {
    color: #4ecdc4;
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
}

.stat-card-info .stat-number {
    color: #36d1dc;
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card-warning .stat-number {
    color: #f093fb;
}

.status-online {
    color: #48bb78;
}

.status-offline {
    color: #f56565;
}

/* Quick Actions Section */
.quick-actions-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    background: rgba(20, 27, 45, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3), 0 0 20px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
    text-decoration: none;
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.quick-action-primary .quick-action-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quick-action-info .quick-action-icon {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
}

.quick-action-success .quick-action-icon {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.quick-action-warning .quick-action-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quick-action-card span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Modern Cards */
.modern-card {
    background: rgba(20, 27, 45, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modern-card-header {
    background: rgba(0, 255, 136, 0.05);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.modern-card-title {
    margin: 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
}

.modern-card-body {
    padding: 2rem;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
}

/* Recent Uploads List */
.recent-uploads-list {
    max-height: 350px;
    overflow-y: auto;
}

.upload-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.upload-item:last-child {
    border-bottom: none;
}

.upload-item:hover {
    background-color: #f7fafc;
    border-radius: 10px;
    padding-left: 0.5rem;
    margin: 0 -0.5rem;
}

.upload-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.upload-content {
    flex: 1;
}

.upload-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.upload-screen {
    margin: 0 0 0.25rem 0;
    font-size: 0.8rem;
    color: #718096;
}

.upload-time {
    font-size: 0.75rem;
    color: #a0aec0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }
    
    .stat-card-body {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-action-card {
        padding: 1rem;
    }
}

/* Videos Grid Layout */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.video-card-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-card-header .form-check {
    margin: 0;
}

.video-card-header .form-check-input {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.video-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-actions {
    opacity: 1;
}

.video-actions .btn {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.play-btn:hover {
    background: white;
    transform: scale(1.1);
}

.play-btn i {
    margin-left: 2px; /* Ajuste visual para centralizar o ícone play */
}

.video-card-body {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.video-filename {
    font-size: 0.8rem;
    color: #4a5568;
    background: #f7fafc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
    word-break: break-all;
}

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-screen, .video-date {
    font-size: 0.8rem;
    color: #718096;
    display: flex;
    align-items: center;
}

.video-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
}

.video-date {
    color: #a0aec0;
}

/* Modal de Vídeo */
.modal-lg {
    max-width: 80%;
}

#modalVideo {
    max-height: 70vh;
    object-fit: contain;
}

/* Responsive para Videos Grid */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-card-header {
        padding: 0.8rem;
    }
    
    .video-actions {
        opacity: 1; /* Sempre visível no mobile */
    }
    
    .video-actions .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .video-card-body {
        padding: 1rem;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .video-card-body {
        padding: 0.8rem;
    }
    
    .video-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Videos Header Styles */
.videos-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.videos-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.videos-title-section {
    color: white;
}

.videos-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.videos-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
}

.videos-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-container {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: white;
    width: 300px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.btn-upload {
    background: white;
    color: #667eea;
    border: none;
    border-radius: 15px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-upload:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    color: #667eea;
}

.screen-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.filter-pill.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.pill-count {
    background: rgba(102, 126, 234, 0.2);
    color: inherit;
    border-radius: 10px;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.filter-pill.active .pill-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* Upload Modal Styles */
.upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.upload-area.dragover {
    border-color: #667eea;
    background: #e8f0fe;
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-content h6 {
    color: #2d3748;
    font-weight: 600;
    margin: 0;
}

.upload-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive para Videos Header */
@media (max-width: 768px) {
    .videos-header {
        padding: 1.5rem;
    }
    
    .videos-header-top {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .videos-title {
        font-size: 1.8rem;
    }
    
    .videos-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .btn-upload {
        width: 100%;
        justify-content: center;
    }
    
    .screen-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-pills {
        width: 100%;
    }
    
    .filter-pill {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .videos-header {
        padding: 1rem;
    }
    
    .videos-title {
        font-size: 1.5rem;
    }
    
    .filter-pills {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-pill {
        width: 100%;
    }
    
    .upload-area {
        min-height: 120px;
        padding: 1rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .modal-md {
        max-width: 600px;
    }
}

/* Modern Sidebar Styles */
.modern-sidebar {
    width: 280px;
    background: 
        radial-gradient(ellipse at top, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 100, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0e1a 0%, #141b2d 50%, #0a0e1a 100%) !important;
    background-attachment: fixed !important;
    border-right: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.modern-sidebar::before {
    display: none !important;
}

.sidebar-header {
    padding: 1rem 1.5rem 2rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: none !important;
    background-color: transparent !important;
}

.logo-container {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
}

.sidebar-logo {
    max-height: 120px;
    max-width: 250px;
    width: auto;
    height: auto;
    filter: brightness(1.1);
    margin: 1rem 0 2rem 0;
}

.brand-container {
    color: white;
    padding-bottom: 3rem;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--accent) 0%, rgba(0, 100, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.brand-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.5rem 0 0 0;
}

.sidebar-nav {
    flex: 1;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    margin-bottom: 1rem;
    padding: 0.5rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.nav-link.active::before {
    opacity: 0;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.nav-text {
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(10, 14, 26, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -5px 20px rgba(0, 255, 136, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 100, 255, 0.3) 100%);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.5), inset 0 0 10px rgba(0, 255, 136, 0.2);
}

.user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.user-name {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.user-role {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sidebar user info improved legibility */
.sidebar-footer .user-info {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px;
    padding: 0.5rem;
    margin-right: 0.5rem;
	max-width: calc(100% - 50px); /* Adicione esta linha */
}

.logout-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}

/* Responsive Sidebar */
@media (max-width: 991px) {
    .modern-sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .modern-sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-header {
        padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    }
    
    .brand-title {
        font-size: 1.25rem;
    }
    
    .nav-section {
        margin-bottom: 1.5rem;
    }
    
    .sidebar-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .modern-sidebar {
        width: 100vw;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .nav-text {
        font-size: 1rem;
    }
    
    .user-details {
        display: none;
    }
    
    .user-info {
        justify-content: center;
    }
}

/* Mobile Toggle Button */
.mobile-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.mobile-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Devices Page Styles */
.devices-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.devices-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.devices-title-section {
    color: white;
}

.devices-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.devices-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
}

.devices-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-add-device {
    background: white;
    color: #667eea;
    border: none;
    border-radius: 15px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.btn-add-device:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    color: #667eea;
}

.devices-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 140px;
}

.filter-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.filter-pill.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.status-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-filter {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-filter:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
}

.status-filter.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.status-filter.online.active {
    background: #10b981;
    color: white;
}

.status-filter.offline.active {
    background: #ef4444;
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.edit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.edit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    color: white;
}

.delete-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    color: white;
}

/* Device Key Container */
.device-key-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.device-key-input {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    padding: 0.5rem;
    min-width: 120px;
    outline: none;
}

.copy-key-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-key-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(1.05);
}

/* Responsive Devices */
@media (max-width: 768px) {
    .devices-header {
        padding: 1.5rem;
    }
    
    .devices-header-top {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .devices-title {
        font-size: 1.8rem;
    }
    
    .btn-add-device {
        width: 100%;
        justify-content: center;
    }
    
    .devices-filters {
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .filter-label {
        min-width: auto;
    }
    
    .filter-pills,
    .status-filters {
        width: 100%;
    }
    
    .filter-pill {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .devices-header {
        padding: 1rem;
    }
    
    .devices-title {
        font-size: 1.5rem;
    }
    
    .filter-pills {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-pill {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-btn {
        width: 100%;
        height: 32px;
    }
}

/* Modern Modal Styles */
.modern-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 600px;
    margin: 1.75rem auto;
}

.modern-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    padding: 2rem;
}

.modal-title-section {
    flex: 1;
}

.modal-title-section .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

.btn-close-modern {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-close-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.modern-modal-body {
    padding: 2rem;
    background: #f8f9fa;
    color: #212529 !important;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    font-weight: 600;
    color: #495057 !important;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.required-asterisk {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-control-modern {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    color: #495057 !important;
}

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

.form-control-modern::placeholder {
    color: #6c757d;
}

.form-select-modern {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    color: #495057 !important;
}

.form-select-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    outline: none;
    background: white;
}

.form-select-modern option {
    background: white;
    color: #495057;
}

.textarea-modern {
    resize: vertical;
    min-height: 100px;
}

.form-help-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Key Input Group */
.key-input-group {
    display: flex;
    gap: 0.5rem;
}

.key-input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
}

.btn-generate-key {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-generate-key:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
}

/* Device Type Options */
.device-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.device-type-card {
    position: relative;
}

.device-type-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.device-type-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    margin: 0;
    color: #495057 !important;
}

.device-type-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.device-type-input:checked + .device-type-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.device-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.device-type-icon.video {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.device-type-icon.senha {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.device-type-content h6 {
    margin: 0;
    font-weight: 600;
    color: #495057 !important;
}

.device-type-content small {
    color: #6c757d !important;
}

/* Logo Upload Section */
.logo-upload-section {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-upload-card {
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.logo-upload-card:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.logo-upload-card-compact {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.logo-upload-card-compact:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.logo-upload-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: white;
    font-size: 1.5rem;
}

.logo-upload-card h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #374151;
}

.logo-upload-card p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    font-size: 0.85rem;
}

.logo-file-input {
    display: none;
}

.logo-upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-upload-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    color: white;
}

.logo-upload-btn-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.logo-upload-btn-compact:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    color: white;
}

.logo-help-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}

/* Modal Footer */
.modern-modal-footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-modal-cancel {
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-modal-cancel:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-modal-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-modal-save:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
}

.btn-modal-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-modal-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
}

/* Delete Modal Specific */
.delete-modal .modern-modal-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.delete-confirmation-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.delete-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.delete-message {
    flex: 1;
}

.delete-message p {
    margin: 0 0 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.device-name-highlight {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #dc2626;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    margin: 0.5rem 0;
}

.warning-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 1rem !important;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modern-modal-header {
        padding: 1.5rem;
    }
    
    .modern-modal-body {
        padding: 1.5rem;
    }
    
    .modern-modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .btn-modal-cancel,
    .btn-modal-save,
    .btn-modal-delete {
        width: 100%;
        justify-content: center;
    }
    
    .device-type-options {
        grid-template-columns: 1fr;
    }
    
    .delete-confirmation-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Settings Page Modern Styles */
.settings-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.settings-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.settings-grid .full-width {
    grid-column: 1 / -1;
}

.settings-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.settings-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.settings-card-icon.connection {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.settings-card-icon.logo {
    background: #343a46;
}

.settings-card-icon.background {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.settings-card-icon.integrity {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.settings-card-title h5 {
    margin: 0;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.25rem;
}

.settings-card-title p {
    margin: 0.25rem 0 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

.settings-card-body {
    padding: 2rem;
}

.settings-form-group {
    margin-bottom: 2rem;
}

.settings-label {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.settings-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.settings-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.settings-input-icon {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
}

.settings-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
    color: #374151;
}

.settings-input-suffix {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0.75rem;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.settings-help-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #4b5563;
}

.settings-help-box i {
    color: #667eea;
    margin-top: 0.1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.offline {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.status-badge.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.status-badge.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-examples {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.settings-save-btn {
    background: #343a46;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-save-btn:hover {
    background: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(52, 58, 70, 0.3);
}

/* Upload Sections - Removido para usar estilo inline */

/* Removido - usando classes específicas */

.background-preview-img {
    max-height: 200px;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* Removido - usando estilos inline */

/* Removido classes de placeholder - usar estilo inline */

/* Removido estilos de ícones - usar estilo inline */

.settings-upload-section {
    margin-bottom: 1.5rem;
}

.settings-file-input-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.settings-file-input {
    display: none;
}

.settings-file-label {
    background: #343a46;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.settings-file-label:hover {
    background: #2d3748;
    transform: translateY(-1px);
    color: white;
}

.settings-help-text {
    font-size: 0.8rem;
    color: #64748b;
}

.settings-upload-btn {
    background: #343a46;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-upload-btn:hover {
    background: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(52, 58, 70, 0.3);
}

/* Integrity Actions */
.integrity-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.integrity-action-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.integrity-action-card:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-2px);
}

.integrity-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.integrity-action-icon.check {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.integrity-action-icon.cleanup {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.integrity-action-content h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: #1e293b;
}

.integrity-action-content p {
    margin: 0 0 1rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.integrity-btn {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.check-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
}

.cleanup-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.cleanup-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
}

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-header {
        padding: 1.5rem;
    }
    
    .settings-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .settings-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .settings-card-body {
        padding: 1.5rem;
    }
    
    .integrity-actions {
        grid-template-columns: 1fr;
    }
    
    .integrity-action-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Removido classes conflitantes - usar estilo inline */

/* Responsive table adjustments */
@media (max-width: 767.98px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table td, .table th {
        min-width: 120px;
    }

    .table td:last-child {
        min-width: 100px;
    }
}

/* Cards and other components */
.card {
    background-color: var(--bs-dark);
    border-color: var(--bs-gray-700);
}

.card-footer {
    background: transparent;
    border-top: none;
    padding: 0.5rem;
}

.alert {
    margin-bottom: 2rem;
    color: #ffffff !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px;
}

.alert .alert-heading,
.alert h1, .alert h2, .alert h3, .alert h4, .alert h5, .alert h6 {
    color: #ffffff !important;
}

.alert a {
    color: #ffffff !important;
    text-decoration: underline;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.9) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.9) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.9) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.9) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}

/* Garantir que alertas com d-none ficam escondidos */
.alert.d-none {
    display: none !important;
}

.list-group-item {
    background: transparent;
}

/* Dark theme specific adjustments */
[data-bs-theme=dark] .table {
    color: var(--bs-light);
}

[data-bs-theme=dark] .table > :not(caption) > * > * {
    border-bottom-color: var(--bs-gray-700);
}

[data-bs-theme=dark] .table-hover > tbody > tr:hover {
    background-color: var(--bs-gray-800);
}

[data-bs-theme=dark] .form-control {
    background-color: var(--bs-gray-800);
    border-color: var(--bs-gray-700);
    color: var(--bs-light);
}

[data-bs-theme=dark] .form-control:focus {
    background-color: var(--bs-gray-700);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.btn-group > .btn {
    padding: 0.25rem 0.5rem;
}

.table > :not(caption) > * > * {
    padding: 0.85rem 0.65rem;
    vertical-align: middle;
}

/* Estilo para a tabela de dispositivos */
.device-table {
    width: 100%;
    table-layout: auto;
}

.device-table th, .device-table td {
    white-space: nowrap;
}

.device-table .version-cell {
    min-width: 100px;
}

/* Indicadores de versão minimalistas */
.version-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: normal;
    font-size: 0.85rem;
}

.version-indicator.outdated {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.version-indicator.updated {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.version-indicator i {
    font-size: 0.75rem;
    margin-right: 0.35rem;
}

/* Card de informações de versão minimalista */
.version-info-card {
    background-color: rgba(13, 202, 240, 0.05);
    border-left: 3px solid #0dcaf0;
    border-radius: 0;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.version-info-card h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #0dcaf0;
}

.version-indicators {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.version-indicator-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.version-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.version-indicator-dot.outdated {
    background-color: #dc3545;
}

.version-indicator-dot.updated {
    background-color: #198754;
}

/* Tabela responsiva com scroll horizontal */
@media (max-width: 1200px) {
    .device-table-wrapper {
        overflow-x: auto;
        width: 100%;
    }
}

/* Login page styles */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: var(--bs-gray-900) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 2rem;
    margin: 0;
    width: 100%;
    height: 100vh;
}

.login-card {
    background: var(--bs-dark);
    border: 1px solid var(--bs-gray-700);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-right: 40px;
    backdrop-filter: blur(8px);
    background-color: rgba(var(--bs-dark-rgb), 0.9);
}

.login-logo {
    max-height: 120px;
    margin-bottom: 2rem;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Ajuste responsivo para telas menores */
@media (max-width: 767.98px) {
    .login-container {
        justify-content: center;
        padding: 1rem;
    }

    .login-card {
        margin-right: 0;
        padding: 2rem;
    }
}

/* Dashboard responsive grid */
@media (max-width: 767.98px) {
    .row > [class*='col-'] {
        margin-bottom: 1rem;
    }
}

/* Chart responsive height */
#screenStatsChart {
    min-height: 300px;
}

@media (min-width: 992px) {
    #screenStatsChart {
        min-height: 400px;
    }
}

/* Sistema de Notificações Moderno */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.notification {
    background: #2d3748;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #4299e1;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.notification-show {
    opacity: 1;
    transform: translateX(0);
}

.notification-hide {
    opacity: 0;
    transform: translateX(100%);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
    color: #ffffff !important;
}

.notification-content i:first-child {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    color: #ffffff !important;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.7;
    animation: progress-countdown linear;
    transform-origin: left;
}

@keyframes progress-countdown {
    from { width: 100%; }
    to { width: 0%; }
}

/* Tipos de Notificação */
.notification-success {
    border-left-color: #48bb78;
}

.notification-success .notification-content i:first-child {
    color: #48bb78;
}

.notification-error {
    border-left-color: #f56565;
}

.notification-error .notification-content i:first-child {
    color: #f56565;
}

.notification-warning {
    border-left-color: #ed8936;
}

.notification-warning .notification-content i:first-child {
    color: #ed8936;
}

.notification-info {
    border-left-color: #4299e1;
}

.notification-info .notification-content i:first-child {
    color: #4299e1;
}

/* Cards de estatísticas específicos */
.gradient-card.border-success {
    border-left: 4px solid #28a745 !important;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.gradient-card.border-warning {
    border-left: 4px solid #ffc107 !important;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

.gradient-card.border-danger {
    border-left: 4px solid #dc3545 !important;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

.gradient-card.border-info {
    border-left: 4px solid #17a2b8 !important;
    box-shadow: 0 4px 16px rgba(23, 162, 184, 0.3);
}

/* Status de pagamento nos cards de vídeo */
.video-payment-status {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    gap: 0.5rem;
}

.video-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.video-payment-status .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .notification-container {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification-content {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

/* Força absoluta para container de logo - máxima especificidade */
.logo-area-titansync,
.logo-area-titansync *,
.logo-area-titansync::before,
.logo-area-titansync::after {
    background: #343a46 !important;
    background-image: none !important;
    background-color: #343a46 !important;
    background-attachment: initial !important;
    background-blend-mode: initial !important;
    background-clip: initial !important;
    background-origin: initial !important;
    background-position: initial !important;
    background-repeat: initial !important;
    background-size: initial !important;
}

/* Força apenas para área de logo */
.settings-card-icon.logo {
    background: #343a46 !important;
    background-image: none !important;
    background-color: #343a46 !important;
}

.logo-img-titansync {
    max-height: 250px !important;
    max-width: 95% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Sobrescrever qualquer CSS que possa estar interferindo */
.settings-card .settings-card-body .logo-area-titansync {
    background-color: transparent !important;
    background-image: none !important;
    background: none !important;
}

div[class*="logo"] {
    background-color: transparent !important;
    background-image: none !important;
    background: none !important;
}

/* Forçar tudo relacionado a logo */
*[class*="logo"] {
    background-color: transparent !important;
    background-image: none !important;
    background: none !important;
}

/* Usar seletor de atributo para máxima força */
div[style*="background"] {
    background-color: #343a46 !important;
    background-image: none !important;
}

/* Dispositivos Grid Moderno */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.device-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.device-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.device-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.device-main-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.device-logo-section {
    flex-shrink: 0;
}

.device-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.device-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.device-title-section {
    flex: 1;
    min-width: 0;
}

.device-name {
    color: white;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-type-badge {
    display: flex;
    align-items: center;
}

.device-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.device-type.video {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.device-type.senha {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.device-status-section {
    flex-shrink: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-indicator.online {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent);
}

.status-indicator.offline {
    background: rgba(255, 68, 68, 0.2);
    color: var(--danger);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.online .status-dot {
    background: var(--accent);
}

.status-indicator.offline .status-dot {
    background: var(--danger);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% { 
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    }
}

/* Animação de pulso para voz */
@keyframes voicePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.6);
    }
}

.device-key-section {
    margin-bottom: 1rem;
}

.device-info-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-key-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.device-key-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    color: white;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

.copy-key-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-key-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: scale(1.05);
}

.device-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.device-info-item {
    display: flex;
    flex-direction: column;
}

.device-info-value {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.screen-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.device-notes-section {
    margin-bottom: 1rem;
}

.device-notes {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    line-height: 1.3;
}

.device-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.device-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.device-action-btn.edit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.device-action-btn.edit-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    color: white;
}

.device-action-btn.delete-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.device-action-btn.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    color: white;
}

/* Responsividade */
@media (max-width: 991px) {
    .devices-grid {
        grid-template-columns: 1fr;
    }
    
    .device-card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .device-main-info {
        width: 100%;
    }
    
    .device-status-section {
        align-self: flex-start;
    }
    
    .device-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .devices-grid {
        gap: 1rem;
    }
    
    .device-card {
        padding: 1rem;
    }
    
    .device-actions {
        flex-direction: column;
    }
}

/* Modal de Edição - Componentes Compactos */
.current-logo-preview-compact {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(102, 126, 234, 0.3);
    margin: 0 auto;
}

.current-logo-img-compact {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-upload-card-compact {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.logo-upload-card-compact:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.08);
}

.logo-upload-label-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
}

.upload-icon-compact {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.upload-text-compact {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.upload-title-compact {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.upload-subtitle-compact {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.btn-copy-key {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy-key:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(1.05);
}

/* === SCREENS PAGE STYLES === */
.screens-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.screens-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.screens-title-section h2.screens-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.screens-title-section .screens-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.btn-create-screen {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-create-screen:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

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

.screen-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.screen-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.screen-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.screen-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.screen-actions {
    display: flex;
    gap: 0.5rem;
}

.screen-actions .btn {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.screen-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
}

.screen-card-body {
    padding: 1.25rem;
}

.screen-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #2d3748;
}

.screen-description {
    color: #718096;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.screen-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #a0aec0;
}

.screen-meta span {
    display: flex;
    align-items: center;
}

.screen-card-footer {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.screen-card-footer .btn {
    width: 100%;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .screens-header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .screens-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .screen-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* === USERS PAGE STYLES === */
.users-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.users-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.users-title-section h2.users-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.users-title-section .users-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.btn-create-user {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-create-user:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

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

.user-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-avatar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.user-type-badge .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.admin-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
}

.user-badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-card-body {
    padding: 1.25rem;
}

.user-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #2d3748;
}

.user-email {
    color: #718096;
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
}

.user-company {
    color: #a0aec0;
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.user-permissions {
    margin-bottom: 1rem;
}

.permissions-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 0.5rem 0;
}

.permission-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    margin: 0.125rem;
    font-weight: 500;
}

.admin-permission {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.add-devices {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.remove-devices {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.create-screens {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.no-permissions {
    background: #e5e7eb;
    color: #6b7280;
}

.permission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.user-access {
    margin-bottom: 1rem;
}

.access-info {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

.user-card-footer {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-action-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.btn-action-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    color: white;
}

.btn-action-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.btn-action-info:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-1px);
    color: white;
}

.btn-action-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.btn-action-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    color: white;
}

.btn-action-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.btn-action-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    color: white;
}

.permission-option {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.permission-option:last-child {
    margin-bottom: 0;
}

.permission-option .form-check-label {
    font-weight: 500;
    color: #374151;
}

.modern-switch {
    width: 2.5rem;
    height: 1.25rem;
}

.modern-switch:checked {
    background-color: #667eea;
    border-color: #667eea;
}

@media (max-width: 768px) {
    .users-header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .user-actions {
        justify-content: center;
    }
    
    .permission-list {
        justify-content: center;
    }
}

/* === ACCESS MANAGEMENT PAGE STYLES === */
.access-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.access-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.access-title-section h2.access-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.access-title-section .access-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.access-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    min-width: 80px;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

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

.access-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.access-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.access-card-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-small {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.user-details h6.user-name-small {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.user-details p.user-email-small {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.8rem;
}

.access-summary {
    display: flex;
    align-items: center;
}

.access-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.access-count.has-access {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.access-count.no-access {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.access-card-body {
    padding: 0;
}

.screens-access-list {
    padding: 0;
}

.screen-access-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.screen-access-item:last-child {
    border-bottom: none;
}

.screen-access-item:hover {
    background-color: #f8fafc;
}

.screen-info {
    display: flex;
    align-items: center;
    color: #374151;
}

.screen-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.access-toggle-wrapper {
    position: relative;
}

.access-toggle-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.access-toggle-wrapper.loading .form-check {
    opacity: 0.5;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.access-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.25rem;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid #22c55e;
}

.access-notification.error {
    border-left-color: #ef4444;
}

.access-notification.show {
    transform: translateX(0);
}

/* Maintenance Actions */
.settings-card-icon.maintenance {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.maintenance-action {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.maintenance-action:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.maintenance-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.maintenance-content {
    flex: 1;
}

.maintenance-content h6 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.maintenance-info {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.maintenance-info .alert {
    margin-bottom: 0;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.maintenance-info .alert ul {
    padding-left: 1.5rem;
}

.maintenance-info .alert li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Video Schedule Styles */
.video-schedule {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.video-start-date,
.video-end-date {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-start-date i {
    color: #22c55e; /* Green for start icon */
}

.video-start-date {
    color: #22c55e !important; /* Green for start text */
}

.video-end-date i {
    color: #ef4444; /* Red for end icon */
}

.video-end-date {
    color: #ef4444 !important; /* Red for end text */
}

.video-schedule .video-end-date i.bi-infinity {
    color: #94a3b8;
}

.video-end-date.permanent {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    color: #22c55e !important;
    font-weight: 500;
}

.video-end-date.permanent i {
    color: #22c55e !important;
}

/* Video Card Header */
.video-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.video-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.permanent-badge {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.permanent-badge i {
    font-size: 0.8rem;
}

/* Payment Status Badges */
.payment-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.payment-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.payment-paid {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.payment-free {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.payment-status-badge i {
    font-size: 0.8rem;
}

/* Modal Styles - Consistent with Upload Modal */
.modern-modal {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.modern-modal-body {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.modern-modal-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(248, 250, 252, 0.9);
    padding: 1.5rem 2rem;
    border-radius: 0 0 16px 16px;
}

.modern-checkbox .form-check-input:checked {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
}

.modern-checkbox .form-check-label {
    color: #475569;
    font-weight: 500;
}

/* Fix text readability in edit modal */
#editVideoModal .modern-input {
    background-color: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #1e293b !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#editVideoModal .modern-input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    background-color: #ffffff !important;
}

#editVideoModal .form-label {
    color: #374151 !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#editVideoModal .text-muted {
    color: #6b7280 !important;
}

#editVideoModal option {
    background-color: #ffffff !important;
    color: #1e293b !important;
}

/* Fix settings page readability */
.settings-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

.settings-card .card-title {
    color: #1e293b !important;
}

.settings-card .card-text,
.settings-card .text-muted {
    color: #64748b !important;
}

.settings-card .btn {
    color: #ffffff !important;
}

.integrity-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.integrity-card .card-title {
    color: #1e293b !important;
}

.integrity-card .card-text {
    color: #64748b !important;
}

.cleanup-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.cleanup-section .card-title {
    color: #1e293b !important;
}

.cleanup-section .card-text {
    color: #64748b !important;
}

/* Fix form inputs in settings */
.settings-page .form-control,
.settings-page .form-select {
    background-color: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #1e293b !important;
}

.settings-page .form-label {
    color: #374151 !important;
    font-weight: 600;
}

.settings-page .text-muted {
    color: #6b7280 !important;
}

/* Fix specific settings elements */
.settings-card-title h5,
.settings-card-title p {
    color: #1e293b !important;
}

.settings-label,
.settings-help-box {
    color: #374151 !important;
}

.settings-input {
    background-color: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #1e293b !important;
}

.settings-input-suffix {
    color: #64748b !important;
}

.btn-dark,
.btn-outline-dark {
    background-color: #1e293b !important;
    border-color: #1e293b !important;
    color: #ffffff !important;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

/* File info text */
.file-info {
    color: #64748b !important;
}

/* Status badges */
.status-badge {
    color: #ffffff !important;
}

/* Card descriptions */
.integrity-card p,
.cleanup-section p {
    color: #64748b !important;
}

/* Fix video card date text readability - More specific selectors */
.video-card .card-body .text-muted {
    color: #475569 !important;
    font-weight: 500 !important;
}

.video-card .card-body small {
    color: #475569 !important;
    font-weight: 500 !important;
}

.video-card .d-flex .text-muted {
    color: #475569 !important;
    font-weight: 500 !important;
}

.video-card .d-flex small {
    color: #475569 !important;
    font-weight: 500 !important;
}

.video-card .badge {
    background: rgba(0, 0, 0, 0.8) !important; /* Dark background for better text visibility */
    color: #ffffff !important; /* White text */
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
}

.video-card .video-filename {
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* Video card text elements */
.video-card .card-title {
    color: #1e293b !important;
    font-weight: 600 !important;
}

.video-card .card-text {
    color: #475569 !important;
}

/* Icons in video cards */
.video-card i.bi {
    color: #475569 !important;
}

/* Date-specific styling */
.video-card [data-bs-toggle="tooltip"] {
    color: #475569 !important;
    font-weight: 500 !important;
}

/* Specific video card element styling */
.video-card .video-filename {
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.video-card .video-info .video-screen,
.video-card .video-info .video-date {
    color: #475569 !important;
    font-weight: 500 !important;
}

/* Screen name display with improved visibility */
.video-card .video-screen {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 3px 6px rgba(139, 92, 246, 0.4);
}

/* Force all text content inside screen name to be white */
.video-screen * {
    color: #ffffff !important;
}

.video-card .video-screen * {
    color: #ffffff !important;
}

/* Force white color for all screen name elements with maximum specificity */
.video-info .video-screen,
.video-info span.video-screen,
.video-card .video-info .video-screen,
.video-card .video-info span.video-screen {
    color: #ffffff !important;
}

.video-info .video-screen i,
.video-info .video-screen .bi,
.video-info span.video-screen i,
.video-info span.video-screen .bi,
.video-card .video-info .video-screen i,
.video-card .video-info .video-screen .bi {
    color: #ffffff !important;
}

.video-card .video-schedule .video-start-date {
    color: #22c55e !important; /* Green for start */
    font-weight: 500 !important;
}

.video-card .video-schedule .video-end-date {
    color: #ef4444 !important; /* Red for end */
    font-weight: 500 !important;
}

.video-card .video-schedule .video-end-date.permanent {
    color: #059669 !important;
    font-weight: 600 !important;
}

.video-card .video-meta span {
    color: #475569 !important;
}

/* Upload progress styling */
.upload-progress {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.upload-progress .progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.upload-progress .progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.upload-progress .progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

.upload-progress small {
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.upload-progress .bi {
    margin-right: 0.5rem;
}

/* Spinner animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.125em;
}

@media (max-width: 768px) {
    .video-schedule {
        flex-direction: column;
        gap: 0.25rem;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff !important;
}

.notification-icon {
    color: #22c55e;
    font-size: 1.25rem;
}

.access-notification.error .notification-icon {
    color: #ef4444;
}

.notification-message {
    font-size: 0.9rem;
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .access-header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .access-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .access-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .screen-access-item {
        padding: 0.75rem 1rem;
    }
    
    .access-notification {
        left: 20px;
        right: 20px;
        transform: translateY(-100px);
    }
    
    .access-notification.show {
        transform: translateY(0);
    }
}

/* === Galactic Edition - Voice Button Styles === */
.voice-btn {
    background: var(--accent);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.voice-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
}

.voice-btn.recording {
    background: var(--danger);
    animation: voicePulse 1.5s infinite;
}

.voice-btn.speaking {
    background: var(--success);
    box-shadow: 0 4px 20px rgba(68, 255, 68, 0.4);
}

/* === Galactic Edition - Voice Card Styles === */
.voice-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.voice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    border-color: var(--accent);
}

/* === Galactic Edition - Card Enhancements === */
.card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.25);
    border-color: rgba(0, 255, 136, 0.5);
}

/* === Galactic Edition - Button Accent Updates === */
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #00cc6a 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00cc6a 0%, var(--accent) 100%);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #ff6666;
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    border: none;
    box-shadow: 0 4px 15px rgba(68, 255, 68, 0.3);
}

.btn-success:hover {
    background: #66ff66;
    box-shadow: 0 6px 20px rgba(68, 255, 68, 0.5);
    transform: translateY(-2px);
}