/* style.css - Estilos do Sistema de Aulas */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #001E37 0%, #002a4a 100%);
    min-height: 100vh;
}

/* ===== PÁGINA DE LOGIN ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-box h2 {
    color: #666;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: normal;
}

.login-form {
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #001E37;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #001E37 0%, #002a4a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.login-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.login-links p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.login-links a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.mensagem {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.mensagem.erro {
    background: #ffe6e6;
    color: #d63031;
    border: 1px solid #fab1a0;
}

.mensagem.sucesso {
    background: #e6ffe6;
    color: #00b894;
    border: 1px solid #55a3ff;
}

.login-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.login-info p {
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

/* ===== DASHBOARD ===== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #001E37;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow: hidden;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #002a4a;
}

.sidebar-header h2 {
    margin-bottom: 4px;
    font-size: 24px;
    text-align: center;
}

.sidebar-header h4 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 16px;
    color: #bdc3c7;
    font-weight: normal;
}

.user-info {
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.user-info span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-info small {
    opacity: 0.8;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    scroll-behavior: smooth;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

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

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #4a90e2;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #34495e;
}

.btn-logout {
    width: 100%;
    padding: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c82333;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    background: #f8f9fa;
    min-height: 100vh;
}

.content-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h1 {
    color: #2c3e50;
    font-size: 28px;
}

.header-actions {
    color: #6c757d;
}

.content-body {
    padding: 30px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 18px;
}

/* Grid de Aulas */
.aulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.aula-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

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

/* Cards bloqueados */
.aula-card.aula-bloqueada {
    opacity: 0.6;
    filter: grayscale(50%);
    cursor: not-allowed;
}

.aula-card.aula-bloqueada:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bloqueado-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.bloqueado-overlay span {
    color: white;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(220, 53, 69, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
}

.aula-card-header {
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.aula-tipo {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.aula-tipo.aula {
    background: #e3f2fd;
    color: #1976d2;
}

.aula-tipo.ebook {
    background: #f3e5f5;
    color: #7b1fa2;
}

.aula-titulo {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.aula-descricao {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.aula-card-body {
    padding: 15px 20px;
}

.aula-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.aula-categoria {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #495057;
}

.aula-duracao {
    color: #6c757d;
    font-size: 14px;
}

.aula-paginas {
    color: #6c757d;
    font-size: 14px;
}

.btn-assistir {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #001E37 0%, #002a4a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-assistir:hover {
    transform: translateY(-1px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
}

.close:hover {
    color: #000;
    background: rgba(255,255,255,1);
}

.modal-body {
    padding: 60px 50px 50px 50px;
}

#modalBody {
    padding: 40px;
    line-height: 1.6;
    color: #333;
}

#modalBody .modal-header-custom {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #001E37;
}

#modalBody .modal-titulo {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

#modalBody .modal-descricao {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

#modalBody .video-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#modalBody .video-container video,
#modalBody .video-container iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#modalBody .ebook-content {
    text-align: center;
    padding: 40px;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#modalBody .ebook-content svg {
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 30, 55, 0.2));
}

#modalBody .ebook-content h3 {
    color: #001E37;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

#modalBody .ebook-content p {
    color: #666;
    margin-bottom: 10px;
    font-size: 16px;
}

#modalBody .ebook-content p:last-child {
    font-style: italic;
    color: #888;
}

.modal-body h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #001E37;
}

.modal-content iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-content video {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-content .ebook-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
    line-height: 1.6;
}

.modal-content .ebook-content h1,
.modal-content .ebook-content h2,
.modal-content .ebook-content h3 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-content .ebook-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.modal-content .ebook-content ul,
.modal-content .ebook-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.modal-content .ebook-content li {
    margin-bottom: 8px;
}

/* Modal de Confirmação */
.modal-confirmacao {
    max-width: 500px !important;
    text-align: center;
}

.modal-confirmacao .modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-confirmacao .modal-icon {
    margin-bottom: 20px;
}

.modal-confirmacao .modal-icon svg {
    filter: drop-shadow(0 4px 8px rgba(255, 107, 107, 0.3));
}

.modal-confirmacao h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    border: none;
}

.modal-confirmacao .modal-body {
    padding: 30px;
    line-height: 1.6;
}

.modal-confirmacao .modal-body p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 15px;
}

.modal-confirmacao .modal-body p:last-child {
    margin-bottom: 0;
}

.modal-confirmacao .modal-footer {
    padding: 20px 30px 30px 30px;
    border-top: 1px solid #e9ecef;
}

.modal-confirmacao .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-confirmacao .btn-primary {
    background: linear-gradient(135deg, #001E37 0%, #002a4a 100%);
    color: white;
}

.modal-confirmacao .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 30, 55, 0.4);
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard {
        flex-direction: column;
    }
    
    .aulas-grid {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 5% auto;
        max-width: 95%;
    }
    
    .modal-body {
        padding: 40px 30px 30px 30px;
    }
    
    #modalBody {
        padding: 30px 20px;
    }
    
    #modalBody .modal-titulo {
        font-size: 24px;
    }
    
    #modalBody .modal-descricao {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    #modalBody .video-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    #modalBody .video-container video,
    #modalBody .video-container iframe {
        height: 250px;
        max-width: 100%;
    }
    
    #modalBody .ebook-content {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    #modalBody .ebook-content svg {
        width: 48px;
        height: 48px;
        margin-bottom: 15px;
    }
    
    #modalBody .ebook-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    #modalBody .ebook-content p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .modal-body h2 {
        font-size: 24px;
    }
    
    .modal-content iframe,
    .modal-content video {
        height: 300px;
    }
    
    .modal-content .ebook-content {
        padding: 15px;
    }
    
    .modal-confirmacao {
        max-width: 90% !important;
    }
    
    .modal-confirmacao .modal-header {
        padding: 20px 20px 15px 20px;
    }
    
    .modal-confirmacao .modal-icon {
        margin-bottom: 15px;
    }
    
    .modal-confirmacao .modal-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .modal-confirmacao h2 {
        font-size: 20px;
    }
    
    .modal-confirmacao .modal-body {
        padding: 20px;
    }
    
    .modal-confirmacao .modal-body p {
        font-size: 14px;
    }
    
    .modal-confirmacao .modal-footer {
        padding: 15px 20px 20px 20px;
    }
    
    .modal-confirmacao .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }
}

/* ===== HEADER MOBILE ===== */
.header-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 56px;
    background: #001E37;
    color: #fff;
    z-index: 1002;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.menu-toggle, .user-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.menu-toggle:hover, .user-toggle:hover {
    opacity: 0.8;
}

.menu-toggle svg, .user-toggle svg {
    display: block;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    text-align: center;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Overlay para o menu mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}



.documentos-section {
    padding: 20px;
}

.documentos-header {
    text-align: center;
    margin-bottom: 30px;
}

.documentos-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.documentos-header p {
    color: #666;
    font-size: 16px;
}

/* Estilos para a seção de benefícios */
.beneficios-section {
    padding: 20px;
}

.beneficios-header {
    text-align: center;
    margin-bottom: 30px;
}

.beneficios-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.beneficios-header p {
    color: #666;
    font-size: 16px;
}

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

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

.beneficio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.beneficio-content {
    padding: 20px;
}

.beneficio-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.beneficio-content p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

.btn-resgatar-cupom {
    background: #001E37;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-resgatar-cupom:hover {
    background: #1A354B;
}



/* Badges para tipos de benefícios */
.tipo-badge.aulas {
    background: #e8f5e8;
    color: #388e3c;
}

.tipo-badge.ebooks {
    background: #e3f2fd;
    color: #1976d2;
}

.tipo-badge.suporte {
    background: #fff3e0;
    color: #f57c00;
}

.tipo-badge.comunidade {
    background: #f3e5f5;
    color: #7b1fa2;
}

.documentos-filtros-cliente {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.documentos-filtros-cliente .filtro-tipo {
    min-width: 250px;
}

.documentos-filtros-cliente label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.documentos-filtros-cliente select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.documentos-filtros-cliente select:focus {
    outline: none;
    border-color: #007bff;
}

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

.documento-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.documento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.documento-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.documento-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
}

.documento-info h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.documento-info .tipo-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: inline-block;
}

.documento-details {
    margin-bottom: 15px;
}

.documento-details p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.documento-actions {
    display: flex;
    gap: 10px;
}

.btn-download-doc {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download-doc:hover {
    background: #218838;
}

.btn-download-doc svg {
    width: 16px;
    height: 16px;
}

/* Badges de tipo de documento */
.tipo-badge.plano_alimentacao {
    background: #e3f2fd;
    color: #1976d2;
}

.tipo-badge.anaminese {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tipo-badge.avaliacao {
    background: #e8f5e8;
    color: #388e3c;
}

.tipo-badge.prescricao {
    background: #fff3e0;
    color: #f57c00;
}

.tipo-badge.exame {
    background: #fce4ec;
    color: #c2185b;
}

.tipo-badge.outro {
    background: #f5f5f5;
    color: #616161;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 900px) {
    .header-mobile {
        display: flex;
    }
    
    .sidebar {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        z-index: 1003 !important;
        transition: left 0.3s cubic-bezier(.4,0,.2,1) !important;
        box-shadow: 2px 0 16px rgba(0,0,0,0.08) !important;
    }
    
    .sidebar.open {
        left: 0 !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-top: 70px !important;
    }
    
    .dashboard {
        flex-direction: column !important;
    }
}

@media (max-width: 600px) {
    .header-title {
        font-size: 16px;
    }
    
    .sidebar {
        width: 80vw !important;
        min-width: 180px !important;
        max-width: 320px !important;
    }
}

/* Aparência moderna para selects do modal de assinatura */
#modalUpgradeAssinatura select.form-control {
    border: 1.5px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    margin-bottom: 0;
}
#modalUpgradeAssinatura select.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px #007bff22;
    background: #fff;
}
/* Botão Voltar estilizado */
#modalUpgradeAssinatura .btn-voltar-upgrade {
    background: #f1f3f6;
    color: #333;
    border: 1.5px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: none;
}
#modalUpgradeAssinatura .btn-voltar-upgrade:hover {
    background: #e9ecef;
    color: #007bff;
    border-color: #007bff;
}

#modalUpgradeAssinatura .form-group label {
    display: block;
    margin-bottom: 1px !important;
    font-weight: 500;
    color: #222;
}

#modalUpgradeAssinatura {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
#modalUpgradeAssinatura > div {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 95vw;
    padding: 32px 18px;
    position: relative;
    box-shadow: 0 2px 16px #0002;
    max-height: 90vh;
    overflow-y: auto;
}

/* === BOTÕES PADRÃO SISTEMA === */
.btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-sm {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 15px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    margin-bottom: 2px;
}
.btn-primary {
    background: linear-gradient(135deg, #001E37 0%, #002a4a 100%);
    color: #fff;
}
.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}
.btn-secondary {
    background: #6c757d;
    color: #fff;
}
.btn-secondary:hover {
    background: #5a6268;
}
.btn-success {
    background: #28a745;
    color: #fff;
}
.btn-success:hover {
    background: #218838;
}
.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #fff;
}
.btn-danger:hover {
    background: #ee5a52;
}
.btn-sm {
    padding: 6px 16px;
    font-size: 14px;
    min-width: 80px;
    height: 36px;
    margin-right: 6px;
}
.btn-sm:last-child {
    margin-right: 0;
}

/* === INPUTS E FORMULÁRIOS PADRÃO === */
.form-control, input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
    padding: 10px 14px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-shadow: none;
    margin-bottom: 0;
    width: 100%;
    max-width: 320px;
    font-weight: 500;
}
.form-control:focus, input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
    border-color: #001E37;
    box-shadow: 0 0 0 2px #001e3722;
    background: #f8f9fa;
}
label {
    font-weight: 600;
    color: #001E37;
    margin-bottom: 4px;
    font-size: 14px;
}

/* === TABELAS PADRÃO === */
.admin-table, .admin-table th, .admin-table td {
    border-collapse: collapse;
    border: none;
}
.admin-table {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px #001e3722;
    font-size: 15px;
    margin-bottom: 18px;
    overflow: hidden;
}
.admin-table th {
    background: #001E37;
    color: #fff;
    font-weight: 700;
    padding: 12px 10px;
    text-align: center;
}
.admin-table td {
    padding: 10px 8px;
    text-align: center;
    color: #222;
}
.admin-table tr:nth-child(even) {
    background: #f8f9fa;
}
.admin-table tr:hover {
    background: #e9ecef;
}
@media (max-width: 900px) {
    .admin-table, .admin-table th, .admin-table td {
        font-size: 13px;
        padding: 8px 4px;
    }
    .form-control, input, select, textarea {
        font-size: 13px;
        max-width: 100%;
    }
    .btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-sm {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* Estilos para modal de aulas bloqueadas */
.grupo-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grupo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.grupo-card.grupo-pago {
    border-color: #27ae60 !important;
}

.grupo-card.grupo-pago:hover {
    border-color: #219a52 !important;
}

.grupo-card.grupo-gratuito {
    border-color: #6c757d !important;
}

.grupo-card.grupo-gratuito:hover {
    border-color: #5a6268 !important;
}

.aula-card-info {
    transition: box-shadow 0.2s ease;
}

.aula-card-info:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .grupos-grid {
        grid-template-columns: 1fr !important;
    }
    
    .aula-card-info {
        padding: 15px !important;
    }
    
    .grupo-card {
        padding: 12px !important;
    }
}
