.dashboard-content {
    max-width: 900px;
    margin: 0 auto;
}

.stats-card {
    padding: 25px 15px;
}

.stats-content h3 {
    font-size: 1.1rem;
}

.stats-number {
    font-size: 0.9rem;
}

.footer {
    background: linear-gradient(135deg, #020381 0%, #2874fc 100%);
    padding-top: 8px;
    color: white;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.footer p.text-muted, .footer small.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer p.text-muted {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer small.text-muted {
    font-size: 0.8rem;
}

.footer .h4 {
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    background: white;
    color: #020381;
    text-decoration: none;
}

.footer .fas.fa-book {
    font-size: 0.9rem;
}

.auth-modal .modal-header {
    background: #c6c6c9;
    color: white;
    border: none;
}

.auth-modal .modal-title {
    font-weight: 600;
}

.auth-modal .modal-title i {
    font-size: 0.9rem;
}

.auth-modal .btn-close {
    filter: brightness(0) invert(1);
}

.auth-modal .form-control:focus {
    border-color: #2874fc;
    box-shadow: 0 0 0 0.25rem rgba(40, 116, 252, 0.25);
}

.auth-modal .btn-primary {
    background: linear-gradient(135deg, #020381 0%, #2874fc 100%);
    border: none;
}

.auth-modal .btn-primary:hover {
    background: linear-gradient(135deg, #020381 0%, #1a68f3 100%);
    border: none;
}

.auth-modal .btn-success {
    background: linear-gradient(135deg, #020381 0%, #2874fc 100%);
    border: none;
}

.auth-modal .btn-success:hover {
    background: linear-gradient(135deg, #020381 0%, #1a68f3 100%);
    border: none;
}

.auth-modal .btn-link {
    color: #2874fc;
}

.auth-modal .text-primary {
    color: #2874fc !important;
}

.auth-modal .text-success {
    color: #2874fc !important;
}

.auth-modal .mb-3 {
    margin-bottom: 0.8rem !important;
}

.auth-modal .form-label {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.auth-modal hr {
    margin: 1rem 0;
}

.auth-modal .form-check {
    margin-bottom: 0.8rem;
}

.auth-modal .modal-body > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .dashboard-preview {
        margin-top: 30px;
    }
}


/* .modal-dialog.modal-dialog-centered {
    max-width: 430px;
} */

.modal-questoes .modal-body {
    padding: 0.75rem 1rem;
}

.modal-questoes .form-label {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.modal-questoes .form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.modal-questoes .card-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.modal-questoes .card-body {
    padding: 0.75rem;
}

.modal-questoes .stats-mini {
    padding: 0.5rem;
}

.modal-questoes .stats-number {
    font-size: 1.25rem;
}

.modal-questoes .stats-label {
    font-size: 0.7rem;
}

.modal-questoes table {
    font-size: 0.8rem;
}

.modal-questoes .table th,
.modal-questoes .table td {
    padding: 0.4rem 0.6rem;
}

.modal-questoes .text-muted {
    font-size: 0.75rem;
}

.modal-questoes .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.modal-questoes .stats-mini {
    border-radius: 8px;
    transition: transform 0.2s;
}

.modal-questoes .stats-mini:hover {
    transform: translateY(-2px);
}

.modal-questoes #semRegistros {
    padding: 1.5rem 0 !important;
}

.modal-questoes #semRegistros i {
    font-size: 32px !important;
}

.modal-questoes #semRegistros h6 {
    margin-top: 0.5rem !important;
    font-size: 0.9rem;
}

.modal-questoes #semRegistros p {
    font-size: 0.75rem;
    margin-bottom: 0;
}

.modal-questoes .progress-bar.bg-success {
    background: #28a745 !important;
}

.progress-bar {
    transition: width 0.5s ease-in-out;
}

@media (max-width: 576px) {
    .modal-questoes .modal-body {
        padding: 0.5rem;
    }
    
    .modal-questoes .card-header {
        padding: 0.4rem 0.5rem;
    }
    
    .modal-questoes .card-body {
        padding: 0.5rem;
    }
    
    .modal-questoes .stats-mini {
        padding: 0.4rem 0.3rem;
    }
    
    .modal-questoes .stats-number {
        font-size: 1.1rem;
    }
    
    .modal-questoes .stats-label {
        font-size: 0.65rem;
    }
    
    .modal-questoes .table th,
    .modal-questoes .table td {
        padding: 0.3rem 0.4rem;
    }
    
    .modal-questoes .form-control-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* .modal-questoes.fade .modal-dialog {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-questoes.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
} */

.modal-questoes .modal-content {
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
}

.stats-card, .discipline-card, .subject-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #020381 0%, #2874fc 100%) !important;
}

#promocionalModal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

#promocionalModal .modal-header {
    padding: 1.5rem;
}

#promocionalModal .fas.fa-trophy {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

#promocionalModal .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    transition: all 0.3s ease;
}

#promocionalModal .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#promocionalModal .bg-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border: 1px solid #dee2e6;
}

.progress-bar, .progress-fill {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 0;
}

.action-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #dee2e6;
    color: #6c757d;
    background-color: transparent;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-btn:not(.active) {
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    background-color: transparent !important;
}

.action-btn:not(.active) i {
    color: #6c757d !important;
}

.action-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: 0.1;
    border-radius: inherit;
    pointer-events: none;
}

.stats-number, .count {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

.dashboard-content * {
    box-sizing: border-box;
}

.dashboard-content {
    scroll-behavior: smooth;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.feedback-sucesso {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.feedback-sucesso.show {
    opacity: 1;
    top: 60px;
}

.subject-card {
    position: relative;
}

.subject-card .progress {
    height: 5px;
    border-radius: 3px;
    background-color: #e9ecef;
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.subject-card .progress-bar {
    height: 5px;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    transform-origin: left;
}

.subject-card .progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loading-shine 1.2s ease-in-out;
    z-index: 1;
}

.subject-card .progress-bar.updating {
    animation: progress-pulse 0.6s ease-in-out;
}

@keyframes loading-shine {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes progress-pulse {
    0% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.2);
    }
    100% {
        transform: scaleY(1);
    }
}

.subject-card .progress-bar.progress-1 {
    background-color: #dc3545 !important;
}

.subject-card .progress-bar.progress-2 {
    background-color: #ffc107 !important;
}

.subject-card .progress-bar.progress-3 {
    background-color: #28a745 !important;
}

.nav-tabs-container {
    border-bottom: 1px solid #dee2e6;
}

.custom-tabs {
    margin-bottom: 0;
    border: none;
    display: flex;
    width: 100%;
}

.custom-tabs .nav-item {
    margin-bottom: 0;
    flex: 1;
    width: 50%;
}

.custom-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 8px;
    margin-right: 0;
    background: transparent;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #dee2e6;
    border-bottom: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.custom-tabs .nav-link:hover {
    color: #2874fc;
    background: rgba(40, 116, 252, 0.1);
}

.custom-tabs .nav-link.active {
    color: #2874fc;
    background: #fff;
    border: 1px solid #dee2e6;
    border-bottom: 1px solid #fff;
    position: relative;
    z-index: 1;
}

.custom-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    z-index: 2;
}

.monitoring-card {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.monitoring-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.monitoring-card.total-questions {
    border-left: 4px solid #007bff;
}

.monitoring-card.correct-answers {
    border-left: 4px solid #007bff;
}

.monitoring-card.success-rate {
    border-left: 4px solid #28a745;
}

.monitoring-header {
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid #f1f3f4;
}

.monitoring-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.monitoring-body {
    padding: 16px 20px 20px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.monitoring-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.total-questions .monitoring-icon {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.correct-answers .monitoring-icon {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.success-rate .monitoring-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.monitoring-content {
    flex: 1;
}

.monitoring-number {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    line-height: 1;
    margin-bottom: 4px;
}

.monitoring-number span {
    display: inline-block;
}

.performance-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 1200px) {
    .performance-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .performance-cards-grid {
        gap: 14px;
    }

    .performance-card {
        padding: 15px;
    }

    .performance-title h6 {
        font-size: 14px;
    }

    .performance-stats-row {
        gap: 10px;
    }

    .performance-stat-item {
        min-width: 48px;
    }
}

.performance-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.performance-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.performance-title {
    flex: 1;
    margin-right: 8px;
}

.performance-title h6 {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.2;
}

.performance-discipline {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    margin-top: 2px;
}

.performance-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.performance-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.performance-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.stat-number {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 2px;
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.performance-badge {
    display: flex;
    align-items: center;
}

.performance-badge .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

.performance-badge .badge i {
    margin-right: 0.2rem;
}

.performance-footer {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid #e9ecef;
}

.performance-footer small {
    font-size: 0.7rem;
}

.performance-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.performance-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.performance-progress .progress {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
}

.performance-progress .progress-bar {
    border-radius: 4px;
    transition: width 0.6s ease;
}

.performance-rate-excellent {
    background: linear-gradient(90deg, #28a745, #20c997) !important;
}

.performance-rate-good {
    background: linear-gradient(90deg, #ffc107, #fd7e14) !important;
}

.performance-rate-poor {
    background: linear-gradient(90deg, #dc3545, #e74c3c) !important;
}

.monitoring-filters, .subjects-filter {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff;
    padding: 24px;
    min-height: 400px;
}

@media (max-width: 768px) {
    .performance-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .performance-card {
        padding: 14px;
    }

    .performance-title h6 {
        font-size: 14px;
    }

    .performance-discipline {
        font-size: 11px;
    }

    .performance-stats-row {
        gap: 10px;
    }

    .performance-stat-item {
        min-width: 45px;
    }

    .stat-number {
        font-size: 0.9rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .monitoring-card .monitoring-body {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 12px 16px 16px 16px;
    }

    .monitoring-header {
        padding: 12px 16px 8px 16px;
    }

    .monitoring-header h5 {
        font-size: 14px;
    }

    .monitoring-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .monitoring-number {
        font-size: 28px;
    }

    .custom-tabs .nav-link {
        padding: 8px 4px;
        font-size: 13px;
        min-height: 44px;
    }

    .custom-tabs .nav-link i {
        margin-right: 4px;
    }

    .tab-content {
        padding: 5px;
    }
}

@media (max-width: 576px) {
    .performance-cards-grid {
        gap: 8px;
    }

    .performance-card {
        padding: 12px;
    }

    .performance-title h6 {
        font-size: 13px;
    }

    .performance-discipline {
        font-size: 10px;
    }

    .performance-stats-row {
        gap: 8px;
    }

    .performance-stat-item {
        min-width: 40px;
    }

    .stat-number {
        font-size: 0.85rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .performance-badge .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .monitoring-card .monitoring-body {
        padding: 8px 12px 12px 12px;
    }

    .monitoring-header {
        padding: 8px 12px 6px 12px;
    }

    .monitoring-header h5 {
        font-size: 13px;
    }

    .monitoring-number {
        font-size: 24px;
    }

    .custom-tabs .nav-link {
        padding: 8px 2px;
        font-size: 12px;
        min-height: 40px;
    }

    .custom-tabs .nav-link i {
        display: none;
    }

    /* Centralizar os stats cards no mobile */
    .row.g-4.mb-3 {
        justify-content: center !important;
    }
    .stats-card {
        margin-left: auto;
        margin-right: auto;
        float: none;
    }
}
