/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* Utilitários */
.hidden {
    display: none !important;
}

.brand {
    color: #ff0000;
    font-weight: bold;
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% { background-color: rgba(255, 255, 255, 0.1); }
    50% { background-color: rgba(255, 255, 255, 0.3); }
    100% { background-color: rgba(255, 255, 255, 0.1); }
}

.skeleton-loading {
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    display: inline-block;
    min-width: 60px;
    min-height: 1em;
}

/* Página de Login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),
        url('img/bglogin.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.02);
}

.login-box h1 {
    color: #ff0000;
    font-size: 2.1rem;
    margin-bottom: 1px;
    line-height: 1.2em;
    font-weight: bold;
}

.login-box p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff0000;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: #888;
}

#loginBtn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#loginBtn:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    transform: translateY(-2px);
}

#loginBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.main-error {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    display: none;
}

/* Página do Dashboard */
.dashboard-page {
    min-height: 800px;
    background: #000;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
    text-decoration: none;
}

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

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.refresh-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #ffc107;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: #ffc107;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.logout-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #ff0000;
    border-radius: 6px;
    color: #ff0000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.logout-btn:hover {
    background: #ff0000;
    color: #fff;
    transform: translateY(-1px);
}

.member-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #007bff;
    border-radius: 6px;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-btn:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.print-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #28a745;
    border-radius: 6px;
    color: #28a745;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.print-btn:hover {
    background: #28a745;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Layout Desktop - Duas colunas principais */
.dashboard-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    padding: 30px;
    min-height: 1000px;
    align-items: start;
}

/* Permitir scroll vertical para notebooks */
@media (min-width: 1025px) and (max-width: 1399px) {
    .dashboard-container {
        max-height: none !important;
        overflow: visible !important;
        min-height: auto !important;
    }
}

/* Comportamento sem scroll apenas para desktops grandes */
@media (min-width: 1400px) {
    .dashboard-container {
        max-height: 1000px;
        overflow: hidden;
    }
}

/* Layout para desktop maior */
@media (min-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 420px 1fr;
        gap: 50px;
        padding: 35px;
    }
}

/* Lado Esquerdo */
.dashboard-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Altura controlada apenas no desktop */
@media (min-width: 1025px) {
    .dashboard-left {
        height: 100%;
        max-height: calc(100vh - 160px);
    }
}

.dashboard-left h1 {
    font-size: 1.9rem;
    margin-bottom: 15px;
    color: #fff;
}

.dashboard-left h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #ff0000;
}

.motto {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #fff;
}

.trophy {
    font-size: 2rem;
    text-align: left;
    margin-top: 10px;
    line-height: 2.2rem;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

/* Conteúdo principal - Segunda coluna */
.dashboard-center {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Reduzido de 35px para 20px */
    min-height: 600px;
}

/* Altura controlada apenas no desktop grande */
@media (min-width: 1400px) {
    .dashboard-center {
        max-height: 900px;
    }
}

/* Seção de dedicação - Primeira linha */
.dedication-section {
    text-align: center;
    flex: 1;
}

.dedication-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: 2px;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    height: 100%;
}

/* Seção inferior - Segunda linha */
.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    flex: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    max-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.stat-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: #ff0000;
    box-shadow: 0 25px 50px rgba(255, 0, 0, 0.4);
    background: rgba(255, 0, 0, 0.08);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    transition: all 0.4s ease;
}

.stat-card:hover .stat-number {
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.9);
    transform: scale(1.05);
}

.stat-label {
    color: #ccc;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card:hover .stat-label {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

/* Estilos específicos para o card de membro na linha superior */
.membership-card .membership-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #ccc;
    font-weight: 500;
    text-align: center;
}

.membership-card:hover .membership-text {
    color: #fff;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.3);
}

/* Cards da seção inferior */
.membership-info {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 25px;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    max-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.membership-info:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: #ff0000;
    box-shadow: 0 25px 50px rgba(255, 0, 0, 0.3);
    background: rgba(255, 0, 0, 0.08);
}

.membership-info:hover::before {
    left: 100%;
}

.membership-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ccc;
    transition: all 0.3s ease;
    font-weight: 500;
}

.membership-info:hover p {
    color: #fff;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.3);
}

.months {
    font-size: 2.8rem;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    transition: all 0.4s ease;
}

.membership-info:hover .months {
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.9);
    transform: scale(1.03);
}

.top-courses {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 20px;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100px;
    max-height: 250px;
}

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

.top-courses:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: #ff0000;
    box-shadow: 0 25px 50px rgba(255, 0, 0, 0.3);
    background: rgba(255, 0, 0, 0.08);
}

.top-courses:hover::before {
    left: 100%;
}

.top-courses h3 {
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-courses:hover h3 {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
    transform: scale(1.02);
}

#topCursos {
    list-style: none;
    counter-reset: course-counter;
}

#topCursos li {
    counter-increment: course-counter;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    position: relative;
    padding-left: 30px;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    font-weight: 500;
    line-height: 1.3;
}

#topCursos li:hover {
    color: #fff;
    padding-left: 35px;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
    transform: translateX(3px);
}

#topCursos li:last-child {
    border-bottom: none;
}

#topCursos li::before {
    content: counter(course-counter);
    position: absolute;
    left: 0;
    top: 12px;
    background: #ff0000;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
}

#topCursos li:hover::before {
    background: #fff;
    color: #ff0000;
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

/* Estilos específicos para o card de ranking */
.ranking-card {
    /* Herda todos os estilos de .stat-card */
}


/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
}

/* Suporte a touch para dispositivos móveis */
@media (hover: none) and (pointer: coarse) {
    .stat-card:active,
    .membership-info:active,
    .top-courses:active {
        transform: translateY(-8px) scale(1.02);
        border-color: #ff0000;
        box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2);
        background: rgba(255, 0, 0, 0.05);
    }
    
    .stat-card:active::before,
    .membership-info:active::before,
    .top-courses:active::before {
        left: 100%;
    }
    
    .stat-card:active .stat-number {
        color: #fff;
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
        transform: scale(1.05);
    }
    
    .stat-card:active .stat-label,
    .membership-info:active p,
    .top-courses:active h3 {
        color: #fff;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }
    
    .membership-info:active .months {
        color: #fff;
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
        transform: scale(1.05);
    }
    
    #topCursos li:active {
        color: #fff;
        padding-left: 35px;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
        transform: translateX(3px);
    }
    
    #topCursos li:active::before {
        background: #fff;
        color: #ff0000;
        transform: scale(1.1) rotate(360deg);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    }
    
    /* Classe para efeitos de toque via JavaScript */
    .touch-active {
        transform: translateY(-8px) scale(1.02) !important;
        border-color: #ff0000 !important;
        box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2) !important;
        background: rgba(255, 0, 0, 0.05) !important;
    }
    
    .touch-active::before {
        left: 100% !important;
    }
    
    .touch-active .stat-number {
        color: #fff !important;
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.6) !important;
        transform: scale(1.05) !important;
    }
    
    .touch-active .stat-label,
    .touch-active p,
    .touch-active h3 {
        color: #fff !important;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.3) !important;
    }
    
    .touch-active .months {
        color: #fff !important;
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.6) !important;
        transform: scale(1.05) !important;
    }
    
    #topCursos li.touch-active {
        color: #fff !important;
        padding-left: 35px !important;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.3) !important;
        transform: translateX(3px) !important;
    }
    
    #topCursos li.touch-active::before {
        background: #fff !important;
        color: #ff0000 !important;
        transform: scale(1.1) rotate(360deg) !important;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.5) !important;
    }
}

/* Responsividade - Layout mobile e tablet */
@media (max-width: 1024px) {
    .dashboard-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px;
        padding: 20px;
    }
    
    .dashboard-center {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important; /* Reduzido de 40px para 25px */
    }
    
    .dedication-section {
        text-align: center !important;
    }
    
    .dedication-section h2 {
        font-size: 2rem !important;
        margin-bottom: 40px !important;
        color: #fff !important;
        letter-spacing: 2px !important;
        font-weight: bold !important;
        text-transform: none !important;
    }
    
    .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .bottom-section {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-top: 0 !important;
    }
    
    .dashboard-header {
        padding: 15px 20px;
    }
    
    .header-logo {
        height: 35px;
    }
    
    .header-buttons {
        gap: 10px;
    }
    
    .refresh-btn,
    .member-btn,
    .logout-btn,
    .print-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    /* Cards adaptados para tablet/mobile */
    .stat-card {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        padding: 30px 20px !important;
        text-align: center !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    /* Permitir que o card de ranking seja escondido mesmo no mobile */
    .ranking-card[style*="display: none"],
    .ranking-card.hidden {
        display: none !important;
    }
    
    .stat-card::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent) !important;
        transition: left 0.6s !important;
    }
    
    /* Adicionar suporte a touch para dispositivos móveis */
    .stat-card:hover,
    .stat-card:active,
    .stat-card:focus {
        transform: translateY(-8px) scale(1.02) !important;
        border-color: #ff0000 !important;
        box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2) !important;
        background: rgba(255, 0, 0, 0.05) !important;
    }
    
    .stat-card:hover::before,
    .stat-card:active::before,
    .stat-card:focus::before {
        left: 100% !important;
    }
    
    .stat-number {
        font-size: 3rem !important;
        font-weight: bold !important;
        color: #ff0000 !important;
        margin-bottom: 15px !important;
        text-shadow: 0 0 15px rgba(255, 0, 0, 0.4) !important;
        transition: all 0.3s ease !important;
    }
    
    .stat-card:hover .stat-number,
    .stat-card:active .stat-number,
    .stat-card:focus .stat-number {
        color: #fff !important;
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.6) !important;
        transform: scale(1.05) !important;
    }
    
    .stat-label {
        color: #ccc !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        text-transform: none !important;
        letter-spacing: normal !important;
    }
    
    .stat-card:hover .stat-label,
    .stat-card:active .stat-label,
    .stat-card:focus .stat-label {
        color: #fff !important;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.3) !important;
    }
    
    /* Estilos específicos para card de membro na linha superior em mobile */
    .membership-card .membership-text {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
        color: #ccc !important;
        font-weight: 500 !important;
        text-align: center !important;
    }

    .membership-card:hover .membership-text,
    .membership-card:active .membership-text,
    .membership-card:focus .membership-text {
        color: #fff !important;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.3) !important;
    }
    
    /* Cards da seção inferior para mobile/tablet */
    .membership-info {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        padding: 30px 20px !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .membership-info::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent) !important;
        transition: left 0.6s !important;
    }
    
    .membership-info:hover,
    .membership-info:active,
    .membership-info:focus {
        transform: translateY(-8px) scale(1.02) !important;
        border-color: #ff0000 !important;
        box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2) !important;
        background: rgba(255, 0, 0, 0.05) !important;
    }
    
    .membership-info:hover::before,
    .membership-info:active::before,
    .membership-info:focus::before {
        left: 100% !important;
    }
    
    .membership-info p {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
        color: #ccc !important;
        font-weight: normal !important;
        transition: all 0.3s ease !important;
    }
    
    .membership-info:hover p,
    .membership-info:active p,
    .membership-info:focus p {
        color: #fff !important;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.2) !important;
    }
    
    .months {
        font-size: 2.5rem !important;
        font-weight: bold !important;
        color: #ff0000 !important;
        text-shadow: 0 0 15px rgba(255, 0, 0, 0.4) !important;
        transition: all 0.3s ease !important;
    }
    
    .membership-info:hover .months,
    .membership-info:active .months,
    .membership-info:focus .months {
        color: #fff !important;
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.6) !important;
        transform: scale(1.05) !important;
    }
    
    .top-courses {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        padding: 30px 20px !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
        min-height: auto !important;
        max-height: 250px !important;
    }
    
    .top-courses::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent) !important;
        transition: left 0.6s !important;
    }
    
    .top-courses:hover,
    .top-courses:active,
    .top-courses:focus {
        transform: translateY(-8px) scale(1.02) !important;
        border-color: #ff0000 !important;
        box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2) !important;
        background: rgba(255, 0, 0, 0.05) !important;
    }
    
    .top-courses:hover::before,
    .top-courses:active::before,
    .top-courses:focus::before {
        left: 100% !important;
    }
    
    .top-courses h3 {
        color: #fff !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        font-size: 1.3rem !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        text-transform: none !important;
        letter-spacing: normal !important;
    }
    
    .top-courses:hover h3,
    .top-courses:active h3,
    .top-courses:focus h3 {
        color: #fff !important;
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.4) !important;
        transform: scale(1.02) !important;
    }
    
    #topCursos li {
        padding: 12px 0 !important;
        font-size: 1rem !important;
        padding-left: 30px !important;
        font-weight: normal !important;
        transition: all 0.3s ease !important;
    }
    
    #topCursos li:hover,
    #topCursos li:active,
    #topCursos li:focus {
        color: #fff !important;
        padding-left: 35px !important;
        text-shadow: 0 0 5px rgba(255, 0, 0, 0.3) !important;
        transform: translateX(3px) !important;
    }
    
    #topCursos li::before {
        width: 20px !important;
        height: 20px !important;
        top: 12px !important;
        font-size: 12px !important;
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.3) !important;
        transition: all 0.3s ease !important;
    }
    
    #topCursos li:hover::before,
    #topCursos li:active::before,
    #topCursos li:focus::before {
        background: #fff !important;
        color: #ff0000 !important;
        transform: scale(1.1) rotate(360deg) !important;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.5) !important;
    }
}

/* Responsividade específica para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }
    
    .stat-card {
        padding: 25px 15px !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .membership-card .membership-text {
        font-size: 0.8rem !important;
    }
    
    /* Ajustar bottom-section para tablets/notebooks */
    .bottom-section {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    /* Ajustar altura dos cards para tablets */
    .top-courses {
        max-height: 350px !important;
    }
}

/* Responsividade específica para notebooks pequenos - com scroll da página */
@media (min-width: 1025px) and (max-width: 1150px) {
    .dashboard-center {
        gap: 20px !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .bottom-section {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Altura natural com scroll interno */
    .top-courses{
        height: auto !important;
        max-height: 300px !important;
        min-height: 200px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding: 15px 12px !important;
    }
    
    .top-courses h3 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }
    
    .top-courses ol {
        padding: 0 !important;
        margin: 0 !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .top-courses li {
        font-size: 0.9rem !important;
        padding: 5px 0 !important;
        line-height: 1.4 !important;
    }
}

/* Responsividade específica para notebooks médios - com scroll da página */
@media (min-width: 1151px) and (max-width: 1199px) {
    .dashboard-center {
        gap: 25px !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .bottom-section {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 25px !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Altura natural com scroll interno */
    .top-courses {
        height: auto !important;
        max-height: 320px !important;
        min-height: 220px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding: 18px 15px !important;
    }
    
    .top-courses h3 {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }
    
    .top-courses ol {
        padding: 0 !important;
        margin: 0 !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .top-courses li {
        font-size: 0.95rem !important;
        padding: 6px 0 !important;
        line-height: 1.5 !important;
    }
    
    /* Estilizar scrollbar para notebooks */
    #topCursos::-webkit-scrollbar {
        width: 6px;
    }
    
    #topCursos::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }
    
    #topCursos::-webkit-scrollbar-thumb {
        background: rgba(255, 0, 0, 0.5);
        border-radius: 3px;
    }
    
    #topCursos::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 0, 0, 0.7);
    }
    
    /* Ajustar stats grid se necessário */
    .stats-grid {
        gap: 15px !important;
    }
    
    .stat-card {
        padding: 25px 15px !important;
    }
}

/* Responsividade específica para notebooks grandes - com scroll da página */
@media (min-width: 1200px) and (max-width: 1400px) {
    .dashboard-center {
        gap: 30px !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .bottom-section {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Altura natural com scroll interno */
    .top-courses {
        height: auto !important;
        max-height: 350px !important;
        min-height: 250px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding: 20px 18px !important;
    }
    
    .top-courses h3 {
        font-size: 1.2rem !important;
        margin-bottom: 18px !important;
    }
    
    .top-courses ol {
        padding: 0 !important;
        margin: 0 !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .top-courses li {
        font-size: 1rem !important;
        padding: 8px 0 !important;
        line-height: 1.6 !important;
    }
}

/* Responsividade específica para desktop grande */
@media (min-width: 1400px) {
    /* Aumentar altura para telas muito grandes */
    .top-courses {
        max-height: 420px !important;
    }
}

@media (max-width: 768px) {
    /* Ajuste para background em tablets */
    .login-page {
        background-attachment: scroll;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .login-logo {
        height: 70px;
    }
    
    .login-box h1 {
        font-size: 2rem;
    }
    
    .dashboard-left h1 {
        font-size: 2rem;
        color: #fff !important;
    }
    
    .dashboard-left h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-left {
        background: none !important;
        border-radius: 20px !important;
        padding: 30px 25px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    }
    
    .motto {
        color: #fff !important;
    }
    
    .dashboard-center h2 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .months {
        font-size: 2rem;
    }
    
    .trophy {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /* Ajuste para background em dispositivos móveis */
    .login-page {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .login-container {
        padding: 10px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .header-logo {
        height: 30px;
    }
    
    .login-logo {
        height: 60px;
    }
    
    .refresh-btn,
    .member-btn,
    .logout-btn,
    .print-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .dashboard-container {
        padding: 15px;
    }
    
    .dashboard-left {
        background: none !important;
        border-radius: 20px !important;
        padding: 20px 15px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
        margin-bottom: 20px;
    }
    
    .dashboard-left h1 {
        color: #fff !important;
    }
    
    .motto {
        color: #fff !important;
    }
    
    .trophy {
        font-size: 1.6rem;
    }
}

/* Estilos para autenticação por etapas */
.auth-step {
    transition: all 0.3s ease;
}

.help-text {
    color: #888;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

.secondary-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.link-btn {
    background: none;
    border: none;
    color: #ff0000;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.link-btn:hover {
    color: #cc0000;
}

.success-message {
    color: #4ade80;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    display: none;
}

.success-message.show {
    display: block;
}


/* Animação de fade */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.fade-out {
    opacity: 1;
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Melhor feedback visual */
.form-group.success input {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.form-group.error input {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* CSS MELHORADO PARA O BOTÃO - Adicione ao seu style.css */


/* Botões secundários (Voltar) */
.secondary-btn {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-1px);
}

.secondary-btn:active {
    transform: translateY(0);
}

/* Botão link */
.link-btn {
    background: none;
    border: none;
    color: #ff0000;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    margin-top: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.link-btn:hover {
    color: #cc0000;
    text-decoration: underline;
}

.link-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Responsividade para mobile */
@media (max-width: 480px) {
    .secondary-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Animação de entrada */
.fade-in-button {
    animation: fadeInButton 0.5s ease forwards;
}

@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSS específico para impressão */
@media print {
    /* Ocultar elementos desnecessários na impressão */
    .dashboard-header .header-buttons,
    .loading-overlay,
    .logo-link {
        display: none !important;
    }
    
    /* Configurações gerais para impressão */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    /* Header simplificado */
    .dashboard-header {
        background: white !important;
        border-bottom: 2px solid #000 !important;
        padding: 10px 20px !important;
        page-break-after: avoid;
    }
    
    .header-logo {
        height: 50px !important;
    }
    
    /* Container do dashboard otimizado para impressão */
    .dashboard-container {
        display: block !important;
        padding: 10px !important;
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    /* Lado esquerdo */
    .dashboard-left {
        margin-bottom: 20px;
        text-align: center;
        page-break-after: avoid;
    }
    
    .dashboard-left h1,
    .dashboard-left h2 {
        color: black !important;
        text-shadow: none !important;
    }
    
    .motto {
        color: #fff !important;
    }
    
    .trophy {
        font-size: 2rem !important;
        margin: 10px 0;
    }
    
    /* Centro do dashboard */
    .dashboard-center {
        display: block !important;
        gap: 20px !important;
    }
    
    .dedication-section h2 {
        color: black !important;
        text-align: center;
        font-size: 16pt;
        margin-bottom: 15px;
        text-shadow: none !important;
        page-break-after: avoid;
    }
    
    /* Cards de estatísticas */
    .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 15px !important;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
    
    .stat-card,
    .membership-info,
    .top-courses {
        background: white !important;
        border: 2px solid #ccc !important;
        border-radius: 8px !important;
        padding: 15px !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        page-break-inside: avoid;
        margin-bottom: 10px;
    }
    
    .membership-card .membership-text {
        color: #666 !important;
        text-shadow: none !important;
        font-size: 0.8rem !important;
    }
    
    .stat-number,
    .months {
        color: black !important;
        text-shadow: none !important;
        font-size: 18pt !important;
    }
    
    .stat-label {
        color: #666 !important;
        text-shadow: none !important;
        font-size: 12pt !important;
    }
    
    /* Seção inferior */
    .bottom-section {
        display: block !important;
        gap: 15px !important;
    }
    
    .membership-info p {
        color: #666 !important;
        text-shadow: none !important;
    }
    
    .top-courses h3 {
        color: black !important;
        text-shadow: none !important;
        font-size: 14pt;
        text-align: center;
        margin-bottom: 10px;
    }
    
    #topCursos {
        list-style-type: decimal !important;
        padding-left: 20px !important;
    }
    
    #topCursos li {
        color: black !important;
        text-shadow: none !important;
        padding: 5px 0 !important;
        border-bottom: 1px solid #eee !important;
        padding-left: 0 !important;
        font-size: 11pt !important;
        page-break-inside: avoid;
    }
    
    #topCursos li::before {
        display: none !important;
    }    
    
    /* Quebras de página */
    .dashboard-left,
    .dedication-section,
    .bottom-section {
        page-break-inside: avoid;
    }
    
    /* Remover animações e transições */
    *,
    *::before,
    *::after {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
}