/* ============================================================================
   DASHBOARD PROFISSIONAL - ESTILOS COMPLETOS
   Turma 9°TB - Escola Primeiro Mundo
   ============================================================================ */

/* RESET GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIÁVEIS DE COR */
:root {
    --bg-color: #f5f7fa;
    --header-bg: #ffffff;
    --section-bg: #ffffff;
    --text-color: #2c3e50;
    --header-text: #1a252f;
    --accent: #6366f1;
    --accent-light: #e0e7ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --footer-bg: #1f2937;
    --footer-text: #f3f4f6;
    --sidebar-bg: #ffffff;
    --sidebar-text: #374151;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

/* TEMA ESCURO */
.dark-theme {
    --bg-color: #0f172a;
    --header-bg: #1e293b;
    --section-bg: #1e293b;
    --text-color: #e2e8f0;
    --header-text: #f1f5f9;
    --accent: #818cf8;
    --accent-light: #312e81;
    --sidebar-bg: #1e293b;
    --sidebar-text: #cbd5e1;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.3);
}

/* BODY */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
}

/* DASHBOARD CONTAINER */
.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-area i {
    font-size: 1.8rem;
    color: var(--accent);
}

.logo-area h2 {
    font-size: 1.3rem;
    color: var(--header-text);
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-left-color: var(--accent);
}

.nav-item.active {
    background: var(--accent-light);
    color: var(--accent);
    border-left-color: var(--accent);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 0.5rem;
}

.theme-toggle-sidebar,
.logout-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.theme-toggle-sidebar {
    background: var(--accent-light);
    color: var(--accent);
}

.theme-toggle-sidebar:hover {
    background: var(--accent);
    color: white;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
}

/* ============================================================================
   DASHBOARD CONTENT
   ============================================================================ */

.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-header {
    background: var(--section-bg);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

#page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--header-text);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.5;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.user-info p {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--sidebar-text);
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

.sections-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================================
   CARDS E COMPONENTES
   ============================================================================ */

.welcome-card {
    background: linear-gradient(135deg, var(--accent) 0%, rgba(99, 102, 241, 0.8) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.welcome-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.welcome-card p {
    opacity: 0.9;
    font-size: 1.05rem;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.blue { background: #3b82f6; }
.stat-icon.green { background: #10b981; }
.stat-icon.orange { background: #f59e0b; }
.stat-icon.purple { background: #a855f7; }

.stat-content h3 {
    font-size: 0.95rem;
    color: var(--sidebar-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--header-text);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-content span {
    font-size: 0.9rem;
    color: var(--sidebar-text);
}

/* CARDS */
.card {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--header-text);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-light);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ============================================================================
   BOTÕES
   ============================================================================ */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--accent-light);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    color: var(--accent);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: #4f46e5;
    transform: scale(1.1);
}

.btn-icon.delete {
    color: var(--danger);
}

.btn-icon.delete:hover {
    color: #dc2626;
}

/* ============================================================================
   SEÇÕES ESPECÍFICAS
   ============================================================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-light);
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--header-text);
    margin: 0;
}

/* USUÁRIOS */
.search-filter-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-filter-box input,
.search-filter-box select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: var(--section-bg);
    color: var(--text-color);
    font-size: 0.95rem;
}

.search-filter-box input {
    flex: 1;
}

.search-filter-box input:focus,
.search-filter-box select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.user-card {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent);
}

.user-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.user-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-light);
}

.user-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--header-text);
    margin-bottom: 0.5rem;
}

.user-card .email {
    font-size: 0.9rem;
    color: var(--sidebar-text);
    margin-bottom: 0.75rem;
}

.user-card .matricula {
    font-size: 0.85rem;
    color: var(--sidebar-text);
    margin-top: 1rem;
}

.role-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0.75rem 0;
}

.role-badge.aluno {
    background: #dbeafe;
    color: #0c4a6e;
}

.role-badge.professor {
    background: #dcfce7;
    color: #15803d;
}

.role-badge.admin {
    background: #fee2e2;
    color: #991b1b;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

/* MATERIAIS */
.materials-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.material-card {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.material-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.material-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.material-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--header-text);
}

.material-type {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.material-card p {
    color: var(--sidebar-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.material-actions {
    display: flex;
    gap: 0.5rem;
}

/* ATIVIDADES */
.activities-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-card {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--warning);
    transition: all 0.3s ease;
}

.activity-card.completed {
    border-left-color: var(--success);
    opacity: 0.8;
}

.activity-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.activity-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--header-text);
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fef08a;
    color: #a16207;
}

.status-badge.completed {
    background: #dcfce7;
    color: #15803d;
}

.status-badge.approved {
    background: #dcfce7;
    color: #15803d;
}

.activity-card p {
    color: var(--sidebar-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.activity-footer .date {
    color: var(--sidebar-text);
}

.activity-footer .points {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
}

/* PERFIL */
.profile-container {
    background: var(--section-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.profile-header {
    background: linear-gradient(135deg, var(--accent) 0%, rgba(99, 102, 241, 0.8) 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.profile-pic-large {
    position: relative;
}

.profile-pic-large img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
}

.btn-icon.profile-pic {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border: none;
}

.profile-info p {
    margin: 0.25rem 0;
    opacity: 0.9;
}

.profile-form {
    padding: 2rem;
}

.profile-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--header-text);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--header-text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.password-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.password-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--header-text);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-light);
}

/* COMUNICAÇÃO */
.comunicacao-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.messages-box {
    background: var(--section-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 500px;
    overflow-y: auto;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-item {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.message-item strong {
    color: var(--header-text);
    display: block;
    margin-bottom: 0.5rem;
}

.message-item p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.message-item small {
    color: var(--sidebar-text);
    font-size: 0.85rem;
}

.message-form {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.message-form h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--header-text);
    margin-bottom: 1rem;
}

.empty-state {
    text-align: center;
    color: var(--sidebar-text);
    padding: 2rem;
    font-style: italic;
}

.loading {
    text-align: center;
    color: var(--sidebar-text);
    padding: 2rem;
}

/* ============================================================================
   MODAL
   ============================================================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--section-bg);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--header-text);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--sidebar-text);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--danger);
    transform: scale(1.2);
}

.modal-content form {
    padding: 1.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-buttons button {
    flex: 1;
}

/* ============================================================================
   TABELAS
   ============================================================================ */

.grades-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.grades-table {
    background: var(--section-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: var(--accent-light);
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

table tr:hover {
    background: var(--bg-color);
}

/* ============================================================================
   LISTAS
   ============================================================================ */

.activity-list,
.material-list {
    list-style: none;
    padding: 0;
}

.activity-list li,
.material-list li {
    background: var(--bg-color);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.activity-list li:hover,
.material-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.activity-list li.placeholder,
.material-list li.placeholder {
    border-left: none;
    text-align: center;
    color: var(--sidebar-text);
    cursor: default;
}

.activity-list li.placeholder:hover,
.material-list li.placeholder:hover {
    transform: none;
    box-shadow: none;
    background: var(--bg-color);
}

/* ============================================================================
   PÁGINAS ANTIGAS (Login, Registro, etc)
   ============================================================================ */

.login-section {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.login-container {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-header h2 {
    color: var(--header-text);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.button {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #4f46e5;
}

.login-footer {
    margin-top: 1.5rem;
}

.login-footer p {
    margin: 0.5rem 0;
}

.login-footer a {
    color: var(--accent);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.register-section {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.register-container {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.register-header h2 {
    color: var(--header-text);
    margin-bottom: 0.5rem;
}

.register-header p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.register-form {
    display: flex;
    flex-direction: column;
}

.register-footer {
    margin-top: 1.5rem;
}

.register-footer p {
    margin: 0.5rem 0;
}

.register-footer a {
    color: var(--accent);
    text-decoration: none;
}

.register-footer a:hover {
    text-decoration: underline;
}

header {
    background-color: var(--header-bg);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--header-text);
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav li {
    display: inline;
}

nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-color);
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section {
    background-color: var(--section-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--header-text);
    margin-bottom: 1rem;
}

section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

ul {
    list-style-type: none;
    padding-left: 0;
}

li {
    background-color: rgba(99, 102, 241, 0.1);
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid var(--accent);
    transition: background-color 0.3s ease;
}

li:hover {
    background-color: rgba(99, 102, 241, 0.2);
}

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

footer p {
    font-size: 0.9rem;
}

/* ============================================================================
   RESPONSIVIDADE
   ============================================================================ */

@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .comunicacao-container,
    .grades-container {
        grid-template-columns: 1fr;
    }

    .search-filter-box {
        flex-direction: column;
    }

    .search-filter-box input,
    .search-filter-box select {
        width: 100%;
    }

    .header-right {
        gap: 1rem;
    }

    .search-box {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .dashboard-content {
        flex: 1;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 1rem;
    }

    .header-right {
        width: 100%;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .sections-container {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .comunicacao-container {
        grid-template-columns: 1fr;
    }

    .grades-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
    }

    table {
        font-size: 0.85rem;
    }

    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }

    .nav-item span {
        display: none;
    }

    .nav-item {
        padding: 1rem;
        justify-content: center;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    section {
        padding: 1.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 1rem;
    }
}

/* FIM DO ARQUIVO CSS */
