/* ============================================
   ESTILOS GLOBAIS - Sistema de Avaliação
   ============================================ */

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

:root {
    --primary-color: #3fa14c;
    --primary-dark: #2d7a38;
    --primary-light: #4cb85d;
    --success-bg: #d4edda;
    --success-text: #155724;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --error-bg: #ffe6e6;
    --error-text: #dc3545;
    --gray-50: #f8f9fa;
    --gray-100: #f0f0f0;
    --gray-200: #e0e0e0;
    --gray-300: #cccccc;
    --gray-600: #666666;
    --gray-900: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Backgrounds específicos por página */
body.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body.disciplines-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    padding-bottom: 40px;
}

/* ============================================
   COMPONENTES COMUNS
   ============================================ */

/* Botões Base */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63, 161, 76, 0.3);
}

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

.btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--gray-50);
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

.loading-spinner.large {
    border-width: 4px;
    width: 50px;
    height: 50px;
}

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

/* Mensagens */
.message-box {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.error-message {
    background: var(--error-bg);
    border-left: 4px solid var(--error-text);
    color: var(--error-text);
}

.success-message {
    background: var(--success-bg);
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
}

/* Info Box */
.info-box {
    background: #f0f9f2;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 8px;
}

.info-box p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.info-box strong {
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlide 0.3s ease;
}

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

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

.loading-overlay.active {
    display: flex;
}

/* ============================================
   PÁGINA DE LOGIN
   ============================================ */

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
}

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

.login-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.login-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.5;
}

.login-form-container {
    padding: 40px 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-900);
    font-weight: 500;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
}

.input-wrapper input[type="text"],
.input-wrapper input[type="password"] {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.input-wrapper input[type="text"]:focus,
.input-wrapper input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(63, 161, 76, 0.1);
}

.input-wrapper input[type="text"]::placeholder,
.input-wrapper input[type="password"]::placeholder {
    letter-spacing: normal;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(63, 161, 76, 0.3);
}

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

.btn-login:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

.login-loading {
    display: none;
    text-align: center;
    margin-top: 10px;
}

/* ============================================
   PÁGINA DE DISCIPLINAS
   ============================================ */

/* Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-icon {
    font-size: 32px;
}

.header-title h1 {
    font-size: 24px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-token {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

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

/* Container Principal */
.page-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Welcome Section */
.welcome-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

.welcome-section h2 {
    color: var(--gray-900);
    font-size: 24px;
    margin-bottom: 10px;
}

.welcome-section p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Stats */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 40px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.stat-icon.pending {
    background: var(--warning-bg);
}

.stat-icon.completed {
    background: var(--success-bg);
}

.stat-icon.total {
    background: #e7f3ff;
}

.stat-info h3 {
    font-size: 32px;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--gray-600);
    font-size: 14px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
}

.tab {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-badge {
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 8px;
}

.tab.active .tab-badge {
    background: var(--primary-dark);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Disciplines Grid */
.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.discipline-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.discipline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
}

.discipline-card.completed::before {
    background: #28a745;
}

.discipline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.discipline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.discipline-code {
    background: #f0f9f2;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-badge.completed {
    background: var(--success-bg);
    color: var(--success-text);
}

.discipline-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.4;
}

.discipline-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-600);
}

.info-icon {
    font-size: 16px;
}

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

.discipline-actions .btn {
    flex: 1;
}

.btn-view {
    background: #e7f3ff;
    color: #0066cc;
}

.btn-view:hover {
    background: #cce5ff;
}

/* Filters */
.filters-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray-600);
    font-size: 16px;
}

/* Modal Específico */
.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.modal-header h3 {
    font-size: 24px;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.modal-body {
    margin-bottom: 30px;
}

.modal-body p {
    color: var(--gray-600);
    line-height: 1.6;
    text-align: center;
}

.modal-discipline-name {
    background: #f0f9f2;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: var(--gray-50);
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e9ecef;
}

.btn-confirm {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63, 161, 76, 0.3);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        width: 100%;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
        gap: 0;
    }

    .tab {
        border-bottom: 1px solid var(--gray-200);
        border-left: 3px solid transparent;
    }

    .tab.active {
        border-bottom-color: var(--gray-200);
        border-left-color: var(--primary-color);
    }

    .disciplines-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .login-container {
        border-radius: 0;
    }

    .login-header {
        padding: 30px 20px;
    }

    .login-form-container {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header-title h1 {
        font-size: 18px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .discipline-actions {
        flex-direction: column;
    }
}


/* ============================================
   PÁGINA DE AVALIAÇÃO
   ============================================ */

body.evaluation-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
}

/* Banner de Informações da Disciplina */
.discipline-info-banner {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border-left: 5px solid var(--primary-color);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.banner-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.banner-details {
    flex: 1;
}

.banner-code {
    background: #f0f9f2;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.banner-name {
    font-size: 22px;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.3;
}

.banner-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-600);
}

.meta-icon {
    font-size: 16px;
}

/* Indicador de Progresso */
.progress-indicator {
    text-align: center;
}

.progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 6;
}

.progress-ring-circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.progress-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-label {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
}

/* Botão Voltar */
.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

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

/* Formulário de Avaliação */
.evaluation-form {
    max-width: 900px;
    margin: 0 auto;
}

/* Seções */
.evaluation-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.section-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    background: #f0f9f2;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title h3 {
    font-size: 22px;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.section-title p {
    font-size: 14px;
    color: var(--gray-600);
}

/* Grupo de Questões */
.question-group {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Card de Questão */
.question-card {
    padding: 25px;
    background: #fafafa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: var(--primary-color);
    background: white;
}

.question-header {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.question-required {
    color: #dc3545;
    font-size: 18px;
    font-weight: 700;
}

.question-optional {
    color: var(--gray-600);
    font-size: 12px;
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 4px;
}

.question-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.5;
    flex: 1;
}

.question-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-600);
    margin-top: 5px;
}

/* Rating com Emojis */
.rating-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-group input[type="radio"] {
    display: none;
}

.rating-label {
    flex: 1;
    min-width: 100px;
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.rating-label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.rating-group input[type="radio"]:checked + .rating-label {
    border-color: var(--primary-color);
    background: #f0f9f2;
    box-shadow: 0 4px 12px rgba(63, 161, 76, 0.2);
}

.rating-emoji {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

.rating-text {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

/* Escala Likert */
.likert-scale {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.likert-scale input[type="radio"] {
    display: none;
}

.likert-label {
    padding: 15px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
}

.likert-label:hover {
    border-color: var(--primary-color);
    background: #fafafa;
}

.likert-scale input[type="radio"]:checked + .likert-label {
    border-color: var(--primary-color);
    background: #f0f9f2;
    box-shadow: 0 2px 8px rgba(63, 161, 76, 0.15);
}

.likert-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-700);
    flex-shrink: 0;
}

.likert-scale input[type="radio"]:checked + .likert-label .likert-number {
    background: var(--primary-color);
    color: white;
}

.likert-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
}

/* Rating com Estrelas */
.stars-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    align-items: center;
}

.stars-rating input[type="radio"] {
    display: none;
}

.star-label {
    font-size: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(100%);
    opacity: 0.4;
}

.star-label:hover,
.star-label:hover ~ .star-label {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.stars-rating input[type="radio"]:checked ~ .star-label {
    filter: grayscale(0%);
    opacity: 1;
}

.stars-helper {
    margin-left: 15px;
    font-size: 13px;
    color: var(--gray-600);
}

/* Choices (Radio Buttons Customizados) */
.choice-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-group input[type="radio"] {
    display: none;
}

.choice-label {
    padding: 15px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
}

.choice-label:hover {
    border-color: var(--primary-color);
    background: #fafafa;
}

.choice-group input[type="radio"]:checked + .choice-label {
    border-color: var(--primary-color);
    background: #f0f9f2;
}

.choice-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.choice-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.choice-group input[type="radio"]:checked + .choice-label .choice-radio {
    border-color: var(--primary-color);
}

.choice-group input[type="radio"]:checked + .choice-label .choice-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

.choice-text {
    font-size: 15px;
    color: var(--gray-700);
}

/* Slider */
.slider-group {
    padding: 10px 0;
}

.slider-input {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(63, 161, 76, 0.4);
    transition: all 0.2s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(63, 161, 76, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--gray-600);
}

.slider-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
}

.checkbox-label:hover {
    border-color: var(--primary-color);
    background: #fafafa;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label {
    border-color: var(--primary-color);
    background: #f0f9f2;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.checkbox-box::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label .checkbox-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label .checkbox-box::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-text {
    font-size: 14px;
    color: var(--gray-700);
}

/* Textarea */
.textarea-group {
    position: relative;
}

.textarea-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.textarea-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(63, 161, 76, 0.1);
}

.textarea-counter {
    text-align: right;
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 8px;
}

/* Yes/No */
.yesno-group {
    display: flex;
    gap: 15px;
}

.yesno-group input[type="radio"] {
    display: none;
}

.yesno-label {
    flex: 1;
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: white;
}

.yesno-label:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yesno-group input[type="radio"]:checked + .yesno-label.yesno-yes {
    border-color: var(--primary-color);
    background: #f0f9f2;
}

.yesno-group input[type="radio"]:checked + .yesno-label.yesno-no {
    border-color: #dc3545;
    background: #ffe6e6;
}

.yesno-icon {
    font-size: 48px;
}

.yesno-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

/* Botões de Ação */
.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-large {
    flex: 1;
    padding: 18px 30px;
    font-size: 16px;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gray-900);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

/* Ícone de Sucesso no Modal */
.success-icon {
    color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .discipline-info-banner {
        flex-direction: column;
        text-align: center;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-meta {
        justify-content: center;
    }

    .rating-group {
        flex-direction: column;
    }

    .rating-label {
        min-width: auto;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .yesno-group {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .stars-rating {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stars-helper {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ============================================
   MODAL DE VALIDAÇÃO DE QUESTÕES
   ============================================ */

/* Ícone de aviso no modal */
.warning-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

/* Lista de questões não respondidas */
.validation-list {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    max-height: 350px;
    overflow-y: auto;
}

/* Cada item da lista */
.validation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ffe0b2;
}

.validation-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Número da questão */
.validation-item-number {
    background: #ff9800;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Texto da questão */
.validation-item-text {
    flex: 1;
    font-size: 14px;
    color: var(--gray-900);
    line-height: 1.6;
}

/* Dica no final do modal */
.validation-hint {
    font-size: 14px;
    color: var(--gray-600);
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 10px;
    line-height: 1.5;
}

.validation-hint strong {
    color: var(--gray-900);
}

.validation-hint .question-required {
    display: inline;
    margin: 0 2px;
}

/* Destaque visual nas questões não respondidas */
.question-card.highlight-required {
    animation: highlightPulse 0.6s ease-in-out 3;
    border: 2px solid #ff9800;
    background: #fff3e0;
}

@keyframes highlightPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
    }
}

/* Estado focado em questão destacada */
.question-card.highlight-required:focus-within {
    border-color: #ff9800;
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.15);
    background: white;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Margem para scroll de questões */
.scroll-target {
    scroll-margin-top: 120px;
}

/* Personalização da scrollbar na lista de validação */
.validation-list::-webkit-scrollbar {
    width: 8px;
}

.validation-list::-webkit-scrollbar-track {
    background: #ffe0b2;
    border-radius: 10px;
}

.validation-list::-webkit-scrollbar-thumb {
    background: #ff9800;
    border-radius: 10px;
}

.validation-list::-webkit-scrollbar-thumb:hover {
    background: #f57c00;
}

/* Responsividade para modal de validação */
@media (max-width: 768px) {
    .validation-list {
        max-height: 250px;
        padding: 15px;
    }
    
    .validation-item {
        padding: 10px 0;
    }
    
    .validation-item-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .validation-item-text {
        font-size: 13px;
    }
    
    .warning-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
}

/* ========================================
   Custom Options Support
   ======================================== */

/* Support for more than 2 options in multiple choice */
.yesno-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* When there are more than 2 options, adjust layout */
.yesno-group input[type="radio"]:nth-of-type(3),
.yesno-group input[type="checkbox"]:nth-of-type(3) {
    ~ label {
        flex: 1 1 calc(33.333% - 12px);
        min-width: 120px;
    }
}

/* Multi-select hint text */
.multi-select-hint {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-left: 8px;
}

/* Checkbox styling for multiple selection */
.yesno-group input[type="checkbox"] {
    display: none;
}

.yesno-group input[type="checkbox"] + label.yesno-label {
    position: relative;
}

.yesno-group input[type="checkbox"]:checked + label.yesno-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.yesno-group input[type="checkbox"]:checked + label.yesno-label::before {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* All labels display for Likert scale */
.slider-all-labels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.slider-label-item {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 4px;
}

.slider-label-item:hover {
    background: #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .yesno-group {
        flex-direction: column;
    }

    .yesno-group input[type="radio"]:nth-of-type(3) ~ label,
    .yesno-group input[type="checkbox"]:nth-of-type(3) ~ label {
        flex: 1 1 100%;
        min-width: unset;
    }

    .slider-all-labels {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .slider-label-item {
        font-size: 0.75rem;
    }
}

