.discipline-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 576px) {
  .discipline-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .discipline-title .discipline-summary {
    margin-left: 0 !important;
    align-self: flex-start;
    text-align: left;
    width: 100%;
  }
  .dashboard-content {
    padding: 0.5rem !important;
  }
}

.discipline-title .discipline-summary {
  margin-left: auto;
  text-align: right;
}

/* Estilo personalizado para o Plano da Aprovação */

/* ========== LANDING PAGE STYLES ========== */

:root {
    --primary-dark: #020381;
    --primary-light: #2874fc;
    --gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

.modal {
  overflow-y: auto;
  /*max-height: 100vh; */
}

::-webkit-scrollbar {
    width: 7px;
    background: #e3f0ff;
}
::-webkit-scrollbar-thumb {
    background: #b3d4fc;
    border-radius: 8px;
}

/* Divider entre seções */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, rgba(0,0,0,0.03), rgba(0,0,0,0.1), rgba(0,0,0,0.03));
    margin: 3rem 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    width: 50px;
    height: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gradient);
    padding: 5px 0; /* Reduzido de 8px para 5px */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(40, 116, 252, 0.1); /* --primary-light com transparência */
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 70%;
    animation-delay: 1s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 40%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2874fc;
}

.text-gradient {
    background: var(--primary-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #010140;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(45deg, #020381, #2874fc);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(2, 3, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.preview-title {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.preview-content {
    padding: 1.5rem;
}

.progress-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.progress-card h5 {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    height: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #020381, #2874fc);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-card small {
    color: #6c757d;
    font-size: 0.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(45deg, #020381, #2874fc);
    color: white;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ========== FEATURES SECTION ========== */

.features-section {
    background: #f8f9fa;
}

.section-description {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon-lg {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* ========== ABOUT SECTION ========== */

.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-content .lead {
    font-size: 1.3rem;
    color: #495057;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2874fc;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.visual-card .card-header {
    background: linear-gradient(135deg, #020381, #2874fc);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.visual-card .card-body {
    padding: 2rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-item span:first-child {
    font-weight: 500;
    color: #495057;
    min-width: 80px;
}

.progress-item span:last-child {
    font-weight: 600;
    color: #495057;
    min-width: 40px;
    text-align: right;
}

.progress-item .progress {
    flex: 1;
    height: 8px;
}

/* ========== CTA SECTION ========== */

.cta-section {
    background: linear-gradient(135deg, #020381 0%, #2874fc 100%);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-actions {
    margin-bottom: 2rem;
}

.cta-actions .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cta-actions .btn:hover {
    transform: translateY(-2px);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    font-weight: 500;
    opacity: 0.9;
}

/* ========== HEADER STYLES ========== */

.navbar-brand {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: white !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    color: #f8f9fa !important;
}

.brand-icon {
    width: 28px; /* Reduzido de 32px para 28px */
    height: 28px; /* Reduzido de 32px para 28px */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem; /* Reduzido de 1rem para 0.9rem */
    transition: all 0.3s ease;
}

.navbar-brand:hover .brand-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(5deg) scale(1.1);
}

.brand-text {
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Estilos para o botão toggle do navbar */
.landing-header .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.landing-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.landing-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.landing-header .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* Garantir que o dropdown funcione corretamente em todos os dispositivos */
.navbar-nav .dropdown-toggle {
    cursor: pointer;
}

.navbar-nav .dropdown-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Prevenir que o dropdown seja fechado acidentalmente em mobile */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.15);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
        border-radius: 0.375rem;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.5rem 1rem;
        color: #212529;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: #e9ecef;
        color: #16181b;
    }
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.15rem;
    }
}

@media (max-width: 991px) {
    /* Garantir que o layout funcione bem em tablets */
    .row.align-items-center {
        align-items: stretch !important;
    }
    
    .hero-visual {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) and (min-width: 577px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        font-size: 1.05rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .dashboard-preview {
        transform: scale(0.85);
    }
}

/* Ajustes para telas de tablet em modo retrato */
@media (max-width: 768px) and (min-width: 577px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        font-size: 1.05rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .dashboard-preview {
        transform: scale(0.85);
    }
}

@media (max-width: 576px) {
    .landing-header .navbar {
        padding: 0.8rem 0;
    }
    
    .hero-section .container {
        padding-top: 40px; /* Reduzido de 80px para 40px */
    }
    
    /* Ajustes específicos para mobile */
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        border-radius: 25px;
    }
    
    /* Ajustar preview do dashboard para mobile */
    .hero-visual {
        margin-top: 2rem;
        order: -1; /* Colocar a imagem acima do texto em mobile */
    }
    
    .dashboard-preview {
        transform: scale(0.7);
        margin: 0.5rem auto;
    }
    
    /* Melhorar ainda mais os cards em telas muito pequenas */
    .preview-content {
        padding: 0.75rem;
    }
    
    .progress-card {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
    }
    
    .progress-card h5 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .preview-header {
        padding: 0.5rem 0.75rem;
    }
    
    /* Ocultar algumas shapes em telas muito pequenas */
    .shape-2, .shape-4 {
        display: none;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Media query para smartphones muito pequenos */
@media (max-width: 480px) {
    .hero-section {
        min-height: 85vh;
        padding: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
        padding: 0 0.25rem;
    }
    
    .hero-actions .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        max-width: 260px;
    }
    
    .dashboard-preview {
        transform: scale(0.7);
        margin: 0.5rem auto;
    }
    
    /* Melhorar ainda mais os cards em telas muito pequenas */
    .preview-content {
        padding: 0.75rem;
    }
    
    .progress-card {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
    }
    
    .progress-card h5 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .preview-header {
        padding: 0.5rem 0.75rem;
    }
    
    /* Ocultar algumas shapes em telas muito pequenas */
    .shape-2, .shape-4 {
        display: none;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Media query para modo paisagem em dispositivos móveis */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 0.5rem 0;
    }
    
    .hero-content {
        padding: 0.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-actions {
        margin-top: 1rem;
    }
    
    .hero-actions .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .dashboard-preview {
        transform: scale(0.6);
        margin: 0 auto;
    }
    
    .floating-shapes .shape {
        opacity: 0.2;
    }
}

/* ========== AUTH MODALS STYLES ========== */

.auth-modal {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.auth-modal .modal-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1rem 1.5rem; /* Reduzido de 1.5rem 2rem para 1rem 1.5rem */
}

.auth-modal .modal-title {
    font-weight: 600;
    font-size: 1.1rem; /* Reduzido de 1.3rem para 1.1rem */
    color: #2c3e50;
}

.auth-modal .modal-body {
    padding: 1.5rem; /* Reduzido de 2rem para 1.5rem */
}

.auth-modal .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.auth-modal .form-control {
    border-radius: 8px; /* Reduzido de 10px para 8px */
    border: 2px solid #e9ecef;
    padding: 0.6rem 0.8rem; /* Reduzido de 0.75rem 1rem para 0.6rem 0.8rem */
    transition: all 0.3s ease;
}

.auth-modal .form-control:focus {
    border-color: #2874fc;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.auth-modal .input-group .btn {
    border-radius: 0 10px 10px 0;
    border: 2px solid #e9ecef;
    border-left: none;
}

.auth-modal .input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.auth-modal .input-group .form-control:focus + .btn {
    border-color: #2874fc;
}

.auth-modal .btn-primary {
    background: linear-gradient(135deg, #020381, #2874fc);
    border: none;
    border-radius: 8px; /* Reduzido de 10px para 8px */
    padding: 0.6rem 1.2rem; /* Reduzido de 0.75rem 1.5rem para 0.6rem 1.2rem */
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.auth-modal .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 8px; /* Reduzido de 10px para 8px */
    padding: 0.6rem 1.2rem; /* Reduzido de 0.75rem 1.5rem para 0.6rem 1.2rem */
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-modal .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.auth-modal .btn-link {
    color: #2874fc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-modal .btn-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.auth-modal .form-check-input:checked {
    background-color: #2874fc;
    border-color: #2874fc;
}

.auth-modal .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.auth-modal .btn-outline-secondary {
    color: #6c757d;
    border-color: #e9ecef;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.auth-modal .btn-outline-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

.auth-modal hr {
    border-color: #e9ecef;
    margin: 1.5rem 0;
}

.auth-modal .text-muted {
    color: #6c757d !important;
    transition: color 0.3s ease;
}

.auth-modal .text-muted:hover {
    color: #495057 !important;
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.password-strength-weak {
    background: #dc3545;
    width: 33%;
}

.password-strength-medium {
    background: #ffc107;
    width: 66%;
}

.password-strength-strong {
    background: #28a745;
    width: 100%;
}

/* Modal animation improvements */
/* .modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
} */

/* Modal backdrop customization */
.modal-backdrop {
    background-color: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(5px);
}

.modal-backdrop.show {
    opacity: 0.6;
}

/* Form validation feedback */
.auth-modal .is-valid {
    border-color: #28a745;
}

.auth-modal .is-invalid {
    border-color: #dc3545;
}

.auth-modal .form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.auth-modal .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Loading state for form submission */
.auth-modal .btn.loading {
    position: relative;
    color: transparent;
}

.auth-modal .btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success indicators */
.auth-modal .success-icon {
    color: #28a745;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.auth-modal .success-icon.show {
    opacity: 1;
    transform: scale(1);
}

/* ========== DASHBOARD STYLES ========== */

.dashboard-header {
    color: #020381;
    text-align: center;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    padding: 15px 0;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-greeting {
    font-weight: 500;
    opacity: 0.9;
}

.dashboard-content {
    padding: 1rem 0;
    min-height: calc(100vh - 200px);
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid #020381;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.estudado .stats-icon {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.revisado .stats-icon {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.praticado .stats-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stats-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.stats-number-estudado .current {
    color: #007bff;
}

.stats-number-revisado .current {
    color: #ffc107;
}

.stats-number-praticado .current {
    color: #28a745;
}

.progress-bar-mini {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-mini .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #020381, #2874fc);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Progress Detailed Card */
.progress-detailed-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}


.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
}

.progress-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    font-weight: 500;
    color: #495057;
}

.progress-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 576px) {
  .progress-bar-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .progress-bar-container .progress {
    margin-bottom: 0;
  }
  .progress-bar-container .progress-text {
    text-align: left;
    margin-top: 0;
  }
}

.progress {
    height: 8px;
    border-radius: 6px;
}

.progress-text {
    min-width: 100px;
    font-weight: 500;
    color: #6c757d;
    text-align: right;
}

/* Overall Progress Card */
.overall-progress-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.circular-progress {
    margin: 0.5rem 0;
}

.progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#2874fc 0deg, #e9ecef 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
}

.progress-percentage {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.overall-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 5px;
    gap: 10px;
}

.stat-item {
    text-align: center;
    padding: 0.3rem;
    flex: 1;
    min-width: 70px;
    margin: 0 2px;
    font-size: 0.9rem;
}

.stat-item .count {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.stat-item .label {
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Disciplines Section */
.discipline-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.discipline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.discipline-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.discipline-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.discipline-progress span {
    color: #6c757d;
    font-size: 0.9rem;
}

.discipline-progress strong {
    color: #2874fc;
    font-size: 0.9rem;
}

.discipline-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    text-align: center;
}

.discipline-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6rem;
    color: #6c757d;
    flex: 1;
    min-width: 0; /* Evita que o texto transborde */
}

.discipline-stats .stat span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Subjects Section */
.subjects-section {
    background: #f8f9fa;
    border-radius: 20px;
}

.discipline-section {
    margin: 0 0.5rem 2rem 0.5rem;
}

.discipline-header {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.discipline-header:hover {
    background-color: #f8f9fa;
}

.discipline-header.collapsed {
    opacity: 0.7;
}

.discipline-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2874fc;
    display: flex;
    align-items: center;
    user-select: none;
}

.collapse-icon {
    transition: transform 0.3s ease;
    color: #2874fc;
    font-size: 0.9rem;
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
}

.discipline-header.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.discipline-count {
    font-size: 0.9rem;
    font-weight: 400;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.8rem;
}

.subject-card {
    background: white;
    border-radius: 8px;
    padding: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.subject-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.subject-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.subject-progress {
    font-size: 0.75rem;
    color: #2874fc;
    font-weight: 500;
    white-space: nowrap;
}

.subject-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.action-btn {
    flex: 1;
    min-width: 70px;
    padding: 0.4rem 0.5rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 6px;
    font-size: 0.7rem;
    color: #6c757d;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-btn i {
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:hover {
    border-color: #2874fc;
    color: #2874fc;
    background: rgba(102, 126, 234, 0.05);
}

/* Estilo base para botões ativos, sobrescrito por color-override.css */
.action-btn.active {
    border-color: #28a745;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 0.8rem;
}

/* Search and Filter Styles */
.subjects-filter .input-group-text {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.subjects-filter #subjectSearch {
    border-left: none;
}

.subjects-filter #subjectSearch:focus {
    border-color: #2874fc;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.subjects-filter #clearSearch,
.subjects-filter #clearMonitoringSearch { /* Added for monitoring search */
    border-left: none;
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    transition: all 0.3s ease;
}

.subjects-filter #clearSearch:hover,
.subjects-filter #clearMonitoringSearch:hover { /* Added for monitoring search */
    background: #e9ecef;
    color: #495057;
}

.subjects-filter #clearSearch:focus,
.subjects-filter #clearMonitoringSearch:focus { /* Added for monitoring search */
    border-color: #2874fc;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Search Highlight */
.search-highlight {
    background: rgba(102, 126, 234, 0.2);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
}

/* No Results Message */
.no-results-message,
.performance-empty { /* Reusing for monitoring no results */
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.no-results-message i,
.performance-empty i { /* Reusing for monitoring no results */
    opacity: 0.5;
}

.no-results-message h5,
.performance-empty h5 { /* Reusing for monitoring no results */
    margin-bottom: 1rem;
}

.no-results-message p,
.performance-empty p { /* Reusing for monitoring no results */
    margin-bottom: 1.5rem;
}

/* Results Counter */
.results-counter {
    text-align: center;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
}

.results-counter i {
    color: #2874fc;
}

/* Animation for filtered results */
.subject-card {
    transition: all 0.3s ease;
}

.subject-card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
}

.subject-card[style*="display: block"],
.subject-card:not([style*="display"]) {
    opacity: 1;
    transform: scale(1);
}

/* Responsive adjustments for filters */
@media (max-width: 768px) {
    .subjects-filter .row {
        gap: 1rem;
    }
    
    .subjects-filter .col-md-9, /* Adjusted for monitoring as well */
    .subjects-filter .col-md-3 { /* Adjusted for monitoring as well */
        width: 100%;
    }
    
    .subjects-filter .input-group {
        margin-bottom: 0.5rem;
    }
    
    .subjects-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.6rem;
    }
    
    .subject-card {
        padding: 0.7rem;
    }
    
    .subject-name {
        font-size: 0.85rem;
    }
    
    .subject-progress {
        font-size: 0.7rem;
    }
    
    .action-btn {
        padding: 0.35rem 0.4rem;
        font-size: 0.65rem;
        min-width: 60px;
    }
    
    .action-btn i {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .no-results-message,
    .performance-empty { /* Reusing for monitoring no results */
        padding: 1.5rem 1rem;
    }
    
    .no-results-message i,
    .performance-empty i { /* Reusing for monitoring no results */
        font-size: 2rem;
    }
    
    .results-counter {
        font-size: 0.85rem;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .subject-card {
        padding: 0.6rem;
    }
    
    .subject-actions {
        gap: 0.3rem;
    }
    
    .action-btn {
        padding: 0.3rem 0.35rem;
        font-size: 0.6rem;
        min-width: 55px;
        gap: 0.2rem;
    }
    
    .action-btn i {
        font-size: 0.65rem;
    }
    
    .action-btn span {
        font-size: 0.6rem;
    }
}

/* ========== EXISTING STYLES ========== */

/* Force modal state cleanup */
body:not(.modal-open) {
    overflow: auto !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

html:not(.modal-open) {
    overflow: auto !important;
}

/* Ensure backdrop is properly removed */
.modal-backdrop.fade:not(.show) {
    opacity: 0;
    display: none;
}

/* Prevent scroll issues on modal close */
.modal.fade:not(.show) {
    display: none;
}

/* Fix for potential z-index issues */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* Ensure proper modal positioning */
/* .modal-dialog {
    max-width: 500px;
}

@media (min-width: 576px) {
    .modal-dialog {
        margin: 1.75rem auto;
    }
} */

/* ========== MODAL DE QUESTÕES ========== */

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #2874fc 0%, #020381 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
}

.stats-mini {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.stats-mini.estudado {
    border-left-color: #28a745;
}

.stats-mini.revisado {
    border-left-color: #17a2b8;
}

.stats-mini.praticado {
    border-left-color: #ffc107;
}

.stats-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats-mini .stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stats-mini .stats-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #e9ecef;
}

.table-hover tbody tr:hover {
    background-color: #f8f9ff;
}

.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    border-color: #2874fc;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #2874fc 0%, #020381 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-danger {
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    transform: translateY(-1px);
}

/* Animações para os cards do modal */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-header h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0;
}

.progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.progress-bar {
    transition: width 0.6s ease;

}

/* Responsive do modal */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .stats-mini {
        margin-bottom: 1rem;
    }
    
    .stats-mini .stats-number {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Melhorias adicionais para o modal */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.modal {
    z-index: 1060;
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #2874fc;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

/* Animação para aparecer o modal
.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
} */

/* Melhorias nos badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-primary {
    background-color: #2874fc !important;
}

/* Adicionando espaçamento consistente para os containers das seções */
.disciplines-section .container,
.subjects-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 992px) {
    .disciplines-section .container,
    .subjects-section .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Estilo para texto menor em campos de formulário */
.small-text {
    font-size: 0.75rem !important;
}

/* Prevenir zoom no mobile - sobrescrever small-text para inputs */
@media (max-width: 768px) {
    input.small-text {
        font-size: 16px !important;
    }
}

.small-text::placeholder {
    font-size: 0.75rem;
}

select.small-text option {
    font-size: 0.75rem;
}

.input-group .small-text,
select.small-text,
.input-group .small-text + button {
    height: calc(1.5em + 0.5rem + 2px);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.input-group .small-text + button i {
    font-size: 0.75rem;
}

.small-icon {
    font-size: 0.75rem;
}

/* Ajustes adicionais para campos de texto pequenos */
.input-group .small-text {
    line-height: 1.2;
}

/* Ajustes para diferentes navegadores */
.small-text::-webkit-input-placeholder {
    line-height: 1.2;
    font-size: 0.75rem;
}
.small-text::-moz-placeholder {
    line-height: 1.2;
    font-size: 0.75rem;
}
.small-text:-ms-input-placeholder {
    line-height: 1.2;
    font-size: 0.75rem;
}
.small-text::-ms-input-placeholder {
    line-height: 1.2;
    font-size: 0.75rem;
}

/* ========== HEADER COMPENSATION ========== */

/* Classe para compensar header fixo/sticky */
.main-content-with-header {
    padding-top: 80px;
}

/* ========== PERFORMANCE CHART STYLES ========== */

.performance-chart-bars {
    background: #fff;
    border-radius: 12px;
    padding: 10px 10px 20px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    position: relative;
}

/* Cabeçalho do gráfico */
.chart-header {
    padding: 15px 20px 10px 20px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
    text-align: center;
}

/* Título do eixo horizontal */
.chart-x-axis-title {
    position: absolute;
    bottom: 5px;
    left: 180px;
    right: 60px;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6c757d;
    text-align: center;
}

/* Container do gráfico */
.chart-content {
    margin-left: 180px;
    margin-right: 60px;
    margin-bottom: 10px;
    position: relative;
}

.chart-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0;
    animation: slideInBar 0.6s ease forwards;
    position: relative;
}

.chart-bar-item:last-child {
    margin-bottom: 0;
}

@keyframes slideInBar {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Label da disciplina (eixo Y) */
.chart-bar-label {
    position: absolute;
    left: -180px;
    width: 170px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    text-align: right;
    padding-right: 10px;
    line-height: 1.2;
    top: 50%;
    transform: translateY(-50%);
}

/* Container da barra */
.chart-bar-container {
    width: 100%;
    height: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e9ecef;
}

/* Preenchimento da barra */
.chart-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
    position: relative;
}

.chart-bar-fill.excellent {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.chart-bar-fill.good {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.chart-bar-fill.poor {
    background: linear-gradient(90deg, #dc3545, #e74c3c);
}

/* Valor percentual */
.chart-bar-value {
    position: absolute;
    right: -55px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    min-width: 45px;
    text-align: center;
}

.chart-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.chart-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chart-empty-state h6 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.chart-loading {
    color: #6c757d;
    text-align: center;
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    .performance-chart-bars {
        padding: 20px 15px 15px 15px;
    }
    
    .chart-header {
        padding: 10px 15px 8px 15px;
        margin-bottom: 15px;
    }
    
    .chart-title {
        font-size: 0.9rem;
    }
    
    .chart-content {
        margin-left: 105px;
        margin-right: 35px;
        margin-bottom: 20px;
    }
    
    .chart-bar-label {
        left: -130px;
        width: 120px;
        font-size: 0.75rem;
    }
    
    .chart-bar-container {
        height: 18px;
    }
    
    .chart-bar-value {
        right: -40px;
        font-size: 0.75rem;
        min-width: 35px;
    }
    
    .chart-x-axis-title {
        font-size: 0.8rem;
        left: 105px;
        right: 35px;
    }
}

@media (max-width: 600px) {
  #questoesModal input[type="number"],
  #questoesModal input[type="date"] {
    font-size: 16px;
  }

  #studyTabsContent input[type="text"] {
    font-size: 16px;
  }
  
  /* Campos de busca específicos para prevenir zoom no mobile */
  #subjectSearch,
  #monitoringSubjectSearch {
    font-size: 16px !important;
  }
  
  /* Manter outros elementos com texto menor */
  #studyTabsContent .btn,
  #studyTabsContent .form-select,
  #studyTabsContent label,
  #studyTabsContent .small-text:not(input) {
    font-size: 12px;
  }
}

/* Regra adicional para garantir que TODOS os inputs em mobile tenham 16px mínimo */
@media (max-width: 768px) {
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="password"] {
    font-size: 16px !important;
  }
}

/* Animação para atualização do "Última revisão" */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}