:root {
    /* Cores baseadas na logo Lia Joca */
    --primary-color: #315b61;
    --primary-dark: #234449;
    --primary-light: #4a7881;
    --secondary-color: #F4A460;
    --secondary-light: #FFB87A;
    --accent-color: #B4CEC8;
    --accent-light: #D1E5D9;
    --background: #F8FAFB;
    --card-bg: #FFFFFF;
    --text-dark: #2C3E50;
    --text-medium: #5C6B7D;
    --text-light: #95A5A6;
    --border-color: #E1E8ED;
    --success: #52A675;
    --danger: #E74C3C;
    --warning: #F39C12;
    --info: #3498DB;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(139, 90, 60, 0.08);
    --shadow-md: 0 4px 12px rgba(139, 90, 60, 0.12);
    --shadow-lg: 0 8px 24px rgba(139, 90, 60, 0.16);
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: 700;
    transition: var(--transition);
}

.navbar-brand:hover {
    opacity: 0.9;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.navbar-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.navbar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.navbar-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.user-menu {
    position: relative;
}

.user-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.user-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Compatibility aliases for newer templates that use different class names */
.user-section {
    position: relative;
}

.user-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 22px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-dark);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
    overflow: hidden;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--background);
    color: var(--primary-color);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header .subtitle {
    color: var(--text-medium);
    font-size: 16px;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.card-title {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 600;
}

/* ==================== FORMULÁRIOS ==================== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.small-input {
    width: 150px;
}

.inline-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.inline-group .form-group {
    flex: 1;
    min-width: 200px;
}

/* ==================== BOTÕES ==================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
}

/* ==================== SEÇÕES ==================== */
.section {
    background: var(--card-bg);
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.section-title {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

/* ==================== RADIO E CHECKBOX ==================== */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.radio-item:hover,
.checkbox-item:hover {
    border-color: var(--primary-color);
    background: rgba(139, 90, 60, 0.05);
}

.radio-item input[type="radio"]:checked + label,
.checkbox-item input[type="checkbox"]:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

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

/* ==================== DASHBOARD ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== TABELAS ==================== */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: rgba(139, 90, 60, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== ALERTAS ==================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(82, 166, 117, 0.1);
    border-left: 4px solid var(--success);
    color: #2d5f41;
}

.alert-danger {
    background: rgba(217, 83, 79, 0.1);
    border-left: 4px solid var(--danger);
    color: #8b2e2a;
}

.alert-info {
    background: rgba(91, 192, 222, 0.1);
    border-left: 4px solid var(--info);
    color: #2e5c6e;
}

.alert-warning {
    background: rgba(240, 173, 78, 0.1);
    border-left: 4px solid var(--warning);
    color: #7a5b2f;
}

/* ==================== AUTH PAGES ==================== */
.auth-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    height: 80px;
    border-radius: 12px;
}

.auth-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-medium);
}

.auth-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ==================== LOGIN PAGE ESPECIAL ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--background) 50%, var(--accent-light) 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(49, 91, 97, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 164, 96, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(49, 91, 97, 0.15);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
    animation: slideUp 0.6s ease-out;
}

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

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.login-logo-large {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.login-logo-large img {
    width: 180px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 15px;
}

.login-welcome {
    position: relative;
    z-index: 1;
}

.login-welcome h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.login-welcome p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 10px;
}

.login-features {
    margin-top: 40px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.login-right {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 40px;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    color: var(--text-medium);
    font-size: 15px;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--background);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(49, 91, 97, 0.08);
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-checkbox label {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 91, 97, 0.3);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 91, 97, 0.4);
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-light);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 15px;
}

.register-prompt {
    text-align: center;
    color: var(--text-medium);
    font-size: 15px;
}

.register-prompt a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.register-prompt a:hover {
    text-decoration: underline;
}

.back-to-home {
    text-align: center;
    margin-top: 20px;
}

.back-to-home a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.back-to-home a:hover {
    color: var(--primary-color);
}

/* Alertas na página de login */
.login-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-alert.alert-success {
    background: rgba(82, 166, 117, 0.1);
    color: #2d5f41;
    border-left: 4px solid var(--success);
}

.login-alert.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #a8322d;
    border-left: 4px solid var(--danger);
}

.login-alert.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: #2e5c82;
    border-left: 4px solid var(--info);
}

/* Responsividade para Login Page */
@media (max-width: 968px) {
    .login-box {
        flex-direction: column;
    }
    
    .login-left {
        padding: 40px 30px;
    }
    
    .login-right {
        padding: 40px 30px;
    }
    
    .login-logo-large img {
        width: 120px;
    }
    
    .login-welcome h2 {
        font-size: 26px;
    }
    
    .login-features {
        margin-top: 25px;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 20px 10px;
    }
    
    .login-box {
        border-radius: 16px;
    }
    
    .login-left,
    .login-right {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 26px;
    }
    
    .login-button {
        padding: 14px;
    }
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-menu {
        gap: 15px;
    }
    
    .navbar-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .inline-group {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .section {
        padding: 20px;
    }
    
    .checkbox-list {
        grid-template-columns: 1fr;
    }
}

/* ==================== UTILIDADES ==================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-admin {
    background: var(--primary-color);
    color: white;
}

.badge-user {
    background: var(--secondary-color);
    color: var(--text-dark);
}

/* ==================== DASHBOARD MODERNO ==================== */
.modern-navbar {
    background: linear-gradient(135deg, #315b61 0%, #2a4d52 100%);
    box-shadow: 0 4px 20px rgba(49, 91, 97, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #4a8891;
}

.navbar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateX(-3px);
    color: #e0f2fe;
}

.navbar-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.navbar-menu {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #e0f2fe;
    border-radius: 2px 2px 0 0;
}

.nav-icon {
    font-size: 18px;
}

.navbar-user {
    position: relative;
}

/* When .user-dropdown is used as the wrapper (dashboard pattern) scope relative to navbar-user */
.navbar-user .user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.user-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a8891, #6ba5b0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.22s ease;
    overflow: hidden;
    z-index: 1100;
}

/* Show dropdown on hover / when parent has .active */
.user-dropdown:hover .dropdown-content,
.user-dropdown.active .dropdown-content,
.user-section:hover .dropdown-content,
.user-section.show .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Alias for templates using .user-dropdown as the wrapper */

/* Support case where .user-dropdown is the actual popup element directly inside .user-section
   (some templates use: <div class="user-section"> <button ...> </button> <div class="user-dropdown"> ... </div> ) */
.user-section > .user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.22s ease;
    overflow: hidden;
    z-index: 1100;
}

.user-section:hover > .user-dropdown,
.user-section.active > .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Also support .user-dropdown having the active class directly (script toggles popup sometimes) */
.user-dropdown.active,
.user-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.user-dropdown .dropdown-item,
.dropdown-content .dropdown-item {
    display: block;
    padding: 12px 18px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.user-dropdown .dropdown-item:last-child,
.dropdown-content .dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown .dropdown-item:hover,
.dropdown-content .dropdown-item:hover {
    background: var(--background);
    color: var(--primary-color);
}

.dropdown-link:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-link:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-link:hover {
    background: var(--background);
}

.dropdown-link.logout:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

/* Dashboard Main */
.dashboard-main {
    background: linear-gradient(135deg, var(--background) 0%, white 100%);
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.dashboard-subtitle {
    font-size: 15px;
    color: var(--text-medium);
}

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

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.btn-icon:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Alert Moderno */
.alert-modern {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideDown 0.4s ease-out;
}

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

.alert-modern.alert-success {
    background: rgba(82, 166, 117, 0.1);
    color: #2d5f41;
    border-left: 4px solid var(--success);
}

.alert-modern.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #a8322d;
    border-left: 4px solid var(--danger);
}

.alert-modern.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: #2e5c82;
    border-left: 4px solid var(--info);
}

.alert-icon {
    font-size: 20px;
    font-weight: bold;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.stat-change {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.stat-change.positive {
    color: var(--success);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.chart-action {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

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

.chart-container {
    position: relative;
    height: 300px;
}

/* Table Card */
.table-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-outline {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.table-responsive {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead th {
    background: var(--background);
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.modern-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.modern-table tbody tr {
    transition: background 0.2s ease;
}

.modern-table tbody tr:hover {
    background: var(--background);
}

.modern-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-dark);
}

.modern-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

.modern-table tbody tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-id {
    background: var(--background);
    color: var(--text-medium);
}

.badge-success {
    background: rgba(82, 166, 117, 0.1);
    color: var(--success);
}

.btn-table-action {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-table-action:hover {
    background: var(--background);
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Responsividade Dashboard */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
        height: 60px;
    }
    
    .navbar-logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-title {
        font-size: 14px;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .dashboard-main {
        padding: 20px 15px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-title {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   INTERFACE DE PONTUA��O DE RESPOSTAS
   ============================================ */

.scoring-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 30px 20px;
}

.scoring-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header da Pontua��o */
.scoring-header {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.header-left {
    flex: 1;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    gap: 12px;
    color: #234144;
}

.scoring-title {
    font-size: 28px;
    color: #2d3748;
    margin: 0 0 15px 0;
    font-weight: 700;
}

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

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 8px;
}

/* Painel de Pontua��o Total */
.score-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, #234144 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(49, 91, 97, 0.3);
}

.score-display {
    margin-bottom: 20px;
}

.score-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-value {
    display: block;
    font-size: 56px;
    font-weight: 800;
    color: white;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.score-value.score-updated {
    transform: scale(1.15);
    color: #F4A460;
}

.btn-save-score {
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-save-score:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #F4A460;
    color: white;
}

.btn-save-score:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Grid de Itens para Pontua��o */
.scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.scoring-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.scoring-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.item-content {
    padding: 20px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.item-label {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    flex: 1;
    padding-right: 15px;
}

/* Sistema de Pontua��o */
.item-score-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 10px;
}

.score-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.score-btn:hover {
    background: #234144;
    transform: scale(1.1);
}

.score-btn:active {
    transform: scale(0.95);
}

.score-input {
    width: 60px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    border: 2px solid transparent;
    background: white;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.score-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(49, 91, 97, 0.1);
}

.score-input.score-changed {
    background: #fef3c7;
    border-color: #F4A460;
}

.item-response {
    margin-top: 15px;
}

.response-text {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Se��o de Observa��es */
.notes-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.notes-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 15px 0;
}

.notes-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(49, 91, 97, 0.1);
}

.notes-textarea::placeholder {
    color: #94a3b8;
}

/* Info de Pontua��o Anterior */
.scoring-info {
    background: #fef3c7;
    border-left: 4px solid #F4A460;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.scoring-info p {
    margin: 8px 0;
    color: #78350f;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2d3748;
    color: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(150%);
    transition: transform 0.3s ease;
    z-index: 10000;
    font-weight: 500;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
}

.toast.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Responsividade da Pontua��o */
@media (max-width: 968px) {
    .scoring-header {
        flex-direction: column;
    }
    
    .score-panel {
        width: 100%;
    }
    
    .scoring-grid {
        grid-template-columns: 1fr;
    }
    
    .scoring-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .scoring-main {
        padding: 15px 10px;
    }
    
    .scoring-header {
        padding: 20px;
    }
    
    .response-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .score-value {
        font-size: 42px;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .toast {
        right: 15px;
        left: 15px;
        bottom: 15px;
    }
}
/* Badges adicionais */
.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.badge-id {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    font-family: 'Courier New', monospace;
}
/* ============================================
   GEST�O DE TESTES COGNITIVOS
   ============================================ */

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.test-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.test-card-header {
    background: var(--primary-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-category {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-card-body {
    padding: 25px;
}

.test-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.test-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 42px;
}

.test-stats {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.stat-text {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.test-card-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn-card {
    flex: 1;
    padding: 10px 15px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

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

.btn-card.btn-secondary {
    color: #64748b;
    border-color: #cbd5e1;
}

.btn-card.btn-secondary:hover {
    background: #64748b;
    color: white;
    border-color: #64748b;
}

.btn-card.btn-danger {
    color: #dc2626;
    border-color: #fecaca;
}

.btn-card.btn-danger:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* M�todos de Cria��o */
.creation-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.method-card {
    position: relative;
    cursor: pointer;
}

.method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.method-label {
    display: block;
    padding: 30px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.method-card input[type="radio"]:checked + .method-label {
    border-color: var(--primary-color);
    background: rgba(49, 91, 97, 0.05);
}

.method-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.method-label h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.method-label p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Upload de PDF */
.pdf-upload-section {
    margin-top: 25px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.upload-area {
    padding: 50px;
    background: white;
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(49, 91, 97, 0.05);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 16px;
    color: #475569;
    margin: 0 0 20px 0;
}

.btn-upload {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    background: #234144;
    transform: translateY(-2px);
}

.btn-upload.btn-secondary {
    background: #64748b;
}

.empty-state-full {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-state-full h2 {
    color: #2d3748;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.empty-state-full p {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #234144;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 91, 97, 0.3);
}

.badge-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .tests-grid {
        grid-template-columns: 1fr;
    }
    
    .test-card-footer {
        flex-direction: column;
    }
    
    .creation-methods {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   EDITOR DE QUEST�ES
   ============================================ */

.questions-editor-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 30px 20px;
}

.questions-container {
    max-width: 1000px;
    margin: 0 auto;
}

.editor-header {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-info {
    flex: 1;
}

.editor-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.editor-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.btn-add-question {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add-question:hover {
    background: #234144;
    transform: translateY(-2px);
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.question-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.question-handle {
    cursor: grab;
    color: #cbd5e1;
    font-size: 20px;
    padding: 5px;
}

.question-handle:active {
    cursor: grabbing;
}

.question-content {
    flex: 1;
}

.question-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

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

.question-type-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.question-points {
    background: #fef3c7;
    color: #78350f;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.question-text {
    font-size: 16px;
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 8px;
}

.question-options {
    font-size: 14px;
    color: #64748b;
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
}

.question-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-action {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.btn-icon-action:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.btn-icon-action.btn-danger:hover {
    background: #dc2626;
}

.empty-questions {
    background: white;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-questions h3 {
    font-size: 24px;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.empty-questions p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2d3748;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f1f5f9;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .editor-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-question {
        width: 100%;
        justify-content: center;
    }
    
    .question-card {
        flex-direction: column;
    }
    
    .question-handle {
        display: none;
    }
    
    .question-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
/* ============================================
   P�GINA DE RESPONDER TESTE
   ============================================ */

.take-test-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 30px 20px;
}

.test-container {
    max-width: 900px;
    margin: 0 auto;
}

.test-header {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.test-category {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.test-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
}

.test-description {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.test-instructions {
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.test-instructions h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 18px;
}

.test-instructions p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.test-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.test-meta-item {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.question-block {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.question-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 20px;
}

.question-points-info {
    font-size: 13px;
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 15px;
}

.question-answer {
    margin-top: 15px;
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + .radio-text {
    font-weight: 700;
    color: var(--primary-color);
}

.radio-text {
    font-size: 16px;
    color: #475569;
    transition: all 0.3s ease;
}

/* Scale (slider) */
.scale-container {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.scale-input {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

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

.scale-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(0, 0, 0, 0.2);
}

.scale-value {
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.scale-value span {
    font-size: 24px;
}

/* Yes/No buttons */
.yes-no-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.yes-no-option {
    padding: 20px;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
}

.yes-no-option input[type="radio"] {
    display: none;
}

.yes-no-option.yes {
    color: #64748b;
}

.yes-no-option.no {
    color: #64748b;
}

.yes-no-option:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.yes-no-option input[type="radio"]:checked ~ span {
    display: block;
}

.yes-no-option input[type="radio"]:checked + span {
    color: white;
}

.yes-no-option.yes:has(input:checked) {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.yes-no-option.no:has(input:checked) {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* Informa��es Pessoais */
.personal-info-section {
    background: white;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.personal-info-section h3 {
    margin: 0 0 25px 0;
    font-size: 22px;
    color: #2d3748;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #2d3748;
}

/* Responsividade */
@media (max-width: 768px) {
    .test-header {
        padding: 25px;
    }

    .test-title {
        font-size: 24px;
    }

    .test-meta {
        flex-direction: column;
        gap: 10px;
    }

    .question-block {
        padding: 20px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }
}
/* ============================================
   P�GINA DE GERENCIAR CATEGORIAS
   ============================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.category-card-header {
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.category-icon {
    font-size: 48px;
    display: block;
}

.category-card-body {
    padding: 20px;
}

.category-name {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.category-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.category-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.category-color-badge {
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: monospace;
}

.category-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.category-card-actions {
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-input-color {
    width: 100%;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    padding: 5px;
}

.form-input-color:hover {
    border-color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   MELHORIAS DE NAVEGA��O
   ============================================ */

/* Logo clic�vel */
.navbar-brand {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

/* Divider vertical na navbar */
.nav-divider-vertical {
    color: #cbd5e1;
    padding: 0 8px;
    user-select: none;
}

/* Link destacado na navbar */
.nav-link.nav-highlight {
    background: linear-gradient(135deg, var(--primary-color), #234144);
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link.nav-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 91, 97, 0.3);
}

/* Divider horizontal na navbar moderna */
.nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 8px 0;
}

/* Item secund�rio na navbar moderna */
.nav-item.nav-secondary {
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item.nav-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color), #234144);
    color: white;
}

.nav-item.nav-secondary:hover .nav-icon {
    transform: scale(1.2);
}
