/* Estilos completos para o Portal do Estudante - Versão Aprimorada */

:root {
    --primary: #3082ae;
    --secondary: #3a3a3a;
    --accent: #07719E;
    --light: #F5F5F5;
    --dark: #212529;
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
    --border-color: #dddddd;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Tema escuro */
.dark-theme {
    --primary: #4a9fdb;
    --secondary: #e0e0e0;
    --accent: #5ab0e8;
    --light: #1a1a1a;
    --dark: #f5f5f5;
    --border-color: #444;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-slow);
}

html {
    scroll-behavior: smooth;
}

/* Animações personalizadas */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(48, 130, 174, 0.5); }
    50% { box-shadow: 0 0 20px rgba(48, 130, 174, 0.8); }
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes loading-wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2); }
}

@keyframes float-particle {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-1000px) rotate(360deg); }
}

@keyframes typing {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header e Navegação */
header {
    background: linear-gradient(135deg, var(--primary), #1a4b8c);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo img {
    height: 80px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

nav a:hover {
    color: #FFD166;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFD166;
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: #065a82;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

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

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 0;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 10px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Seção de Autenticação */
.auth-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--glass-shadow);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    background: var(--glass-bg);
}

.auth-tab.active {
    background: var(--primary);
    color: white;
}

.auth-content {
    padding: 30px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
    color: var(--secondary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(48, 130, 174, 0.2);
}

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

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: var(--transition);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Loading */
.loading-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height: 20px;
}

.loading-bar {
    width: 3px;
    height: 15px;
    background: white;
    border-radius: 2px;
    animation: loading-wave 1s ease-in-out infinite;
}

.loading-bar:nth-child(2) { animation-delay: 0.1s; }
.loading-bar:nth-child(3) { animation-delay: 0.2s; }
.loading-bar:nth-child(4) { animation-delay: 0.3s; }
.loading-bar:nth-child(5) { animation-delay: 0.4s; }

/* Dashboard do Estudante */
.student-dashboard {
    padding: 2rem 0;
    min-height: 100vh;
}

.dashboard-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary), #1a4b8c, var(--accent));
    opacity: 0.1;
    z-index: 0;
}

.dashboard-header > * {
    position: relative;
    z-index: 1;
}

.student-profile {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-image {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.edit-photo-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.edit-photo-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.profile-info h2 {
    margin-bottom: 10px;
    color: var(--primary);
}

.profile-info p {
    margin-bottom: 5px;
    color: #666;
}

/* Progresso Académico */
.academic-progress {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.ring-bg {
    width: 100%;
    height: 100%;
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.ring-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 8px solid white;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 50%);
    transform: rotate(0deg);
    transition: transform 1s ease;
}

.progress-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.progress-label {
    opacity: 0.9;
    font-size: 0.9rem;
}

.academic-countdown {
    background: linear-gradient(135deg, var(--primary), #1a4b8c);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.academic-countdown h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span {
    font-size: 1.8rem;
    font-weight: 700;
}

.countdown-item small {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Navegação do Dashboard */
.dashboard-nav {
    display: flex;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 10px;
    position: relative;
}

.nav-item {
    flex: 1;
    min-width: 120px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(48, 130, 174, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), #1a4b8c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(48, 130, 174, 0.3);
}

.nav-item.active i {
    color: white;
    animation: pulse-gentle 2s infinite;
}

.nav-item i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
    transition: var(--transition);
}

/* Notificações */
.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-gentle 1.5s infinite;
}

/* Conteúdo do Dashboard */
.dashboard-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.dashboard-section.active {
    display: block;
}

.dashboard-section h2 {
    margin-bottom: 20px;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

/* Visão Geral */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hover-3d {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.hover-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.overview-card {
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.overview-card:hover {
    transform: translateY(-5px);
}

.overview-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.overview-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

.overview-info p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

/* Sistema de Conquistas */
.achievements-system {
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.achievements-system h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.achievement-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    text-align: center;
}

.achievement-badge.locked {
    opacity: 0.5;
}

.achievement-badge.unlocked:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.achievement-badge.locked .achievement-icon {
    background: #ccc;
}

.achievement-progress {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary);
}

.achievement-description {
    font-size: 0.8rem;
    color: #666;
}

/* Timeline Académica */
.timeline-section {
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.timeline-section h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-right: 10px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-date {
    position: absolute;
    top: 20px;
    width: 100px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -120px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -120px;
}

.timeline-dot {
    position: absolute;
    top: 25px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* Atividades Recentes */
.recent-activities {
    padding: 25px;
    border-radius: 15px;
}

.recent-activities h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.activity-content p {
    margin-bottom: 5px;
    font-weight: 500;
}

.activity-time {
    font-size: 0.8rem;
    color: #888;
}

/* Notas */
.grades-container {
    padding: 25px;
    border-radius: 15px;
}

.semester-selector {
    margin-bottom: 25px;
}

.semester-tabs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.semester-tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.semester-tab.active {
    background: var(--primary);
    color: white;
}

.grades-table-container {
    overflow-x: auto;
    margin-bottom: 25px;
}

.grades-table {
    width: 100%;
    border-collapse: collapse;
}

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

.grades-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--primary);
}

.grades-table tr:hover {
    background: #f8f9fa;
}

.grade-approved {
    color: #28a745;
    font-weight: 600;
}

.grade-pending {
    color: #ffc107;
    font-weight: 600;
}

.grade-failed {
    color: #dc3545;
    font-weight: 600;
}

.grades-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.summary-card h4 {
    margin-bottom: 10px;
    color: var(--secondary);
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Horário */
.schedule-container {
    padding: 25px;
    border-radius: 15px;
}

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

.schedule-nav-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.schedule-nav-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.schedule-table {
    display: grid;
    grid-template-columns: 100px repeat(5, 1fr);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.schedule-days {
    display: contents;
}

.schedule-day {
    padding: 15px;
    background: var(--primary);
    color: white;
    text-align: center;
    font-weight: 600;
}

.schedule-times {
    display: contents;
}

.schedule-time {
    display: contents;
}

.time-slot {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: #f8f9fa;
}

.class-slot {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.class-slot.empty {
    background: #f8f9fa;
}

.class-slot.has-class {
    background: #e7f3ff;
    border-left: 4px solid var(--primary);
}

.class-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.class-room {
    font-size: 0.8rem;
    color: #666;
}

.class-teacher {
    font-size: 0.8rem;
    color: #888;
}

/* Documentos */
.documents-container {
    padding: 25px;
    border-radius: 15px;
}

.documents-actions {
    margin-bottom: 25px;
}

.document-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.document-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: var(--transition);
}

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

.document-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

.document-info p {
    color: #666;
    font-size: 0.9rem;
}

.requests-table-container {
    overflow-x: auto;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
}

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

.requests-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--primary);
}

.status-pending {
    color: #ffc107;
    font-weight: 600;
}

.status-approved {
    color: #28a745;
    font-weight: 600;
}

.status-rejected {
    color: #dc3545;
    font-weight: 600;
}

/* Projetos */
.projects-container {
    padding: 25px;
    border-radius: 15px;
}

.projects-actions {
    margin-bottom: 25px;
}

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

.project-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.project-header {
    padding: 15px;
    background: var(--primary);
    color: white;
}

.project-header h3 {
    margin-bottom: 5px;
}

.project-course {
    font-size: 0.9rem;
    opacity: 0.9;
}

.project-body {
    padding: 15px;
}

.project-description {
    margin-bottom: 15px;
    color: #666;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

.project-actions {
    padding: 15px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Diretoria */
.directory-container {
    padding: 25px;
    border-radius: 15px;
}

.department-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.department-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition);
}

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

.department-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.staff-member h4 {
    margin-bottom: 5px;
    color: var(--secondary);
}

.staff-member p {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-member i {
    color: var(--primary);
    width: 16px;
}

/* Professores */
.teachers-container {
    padding: 25px;
    border-radius: 15px;
}

.teachers-filter {
    margin-bottom: 25px;
    max-width: 300px;
}

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

.teacher-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

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

.teacher-photo {
    height: 150px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.teacher-info {
    padding: 20px;
}

.teacher-info h3 {
    margin-bottom: 5px;
    color: var(--primary);
}

.teacher-course {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.teacher-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.teacher-contact p {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.teacher-contact i {
    color: var(--primary);
}

/* Conquistas Detalhadas */
.achievements-container {
    padding: 25px;
    border-radius: 15px;
}

.achievements-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.achievements-categories {
    margin-top: 25px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.category-tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.category-tab.active {
    background: var(--primary);
    color: white;
}

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

/* Sistema de Temas */
.theme-switcher {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.theme-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

/* Assistente de IA */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.ai-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.ai-chat-btn:hover {
    transform: scale(1.1);
    animation: glow 2s ease-in-out infinite;
}

.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1001;
    animation: slideInFromRight 0.3s ease;
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    word-wrap: break-word;
    position: relative;
}

.message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.ai {
    align-self: flex-start;
    background: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 5px;
}

.message-timestamp {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

.ai-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.ai-option-btn {
    background: rgba(48, 130, 174, 0.1);
    border: 1px solid rgba(48, 130, 174, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 0.9rem;
}

.ai-option-btn:hover {
    background: rgba(48, 130, 174, 0.2);
    transform: translateX(5px);
}

.ai-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-height: 150px;
    overflow-y: auto;
    display: none;
    z-index: 10;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:hover {
    background: #f8f9fa;
}

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

.ai-chat-input {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    position: relative;
}

.ai-chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    background: var(--light);
    color: var(--secondary);
}

.ai-chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ai-chat-input button:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* Centro de Notificações */
.notification-center {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    display: none;
    animation: slideInFromRight 0.3s ease;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.8rem;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e7f3ff;
    border-left: 3px solid var(--primary);
}

.notification-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary);
}

.notification-message {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.8rem;
    color: #888;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-title {
    margin-bottom: 20px;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

/* Efeitos de partículas */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(48, 130, 174, 0.1);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

/* Animações de entrada */
.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease;
}

.slide-in-right {
    animation: slideInRight 0.6s ease;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 1003;
    animation: slideInFromRight 0.3s ease;
}

/* Responsividade */
@media (max-width: 1200px) {
    .dashboard-header {
        grid-template-columns: 1fr 1fr;
    }
    
    .academic-progress {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }
}

@media (max-width: 992px) {
    .dashboard-header {
        grid-template-columns: 1fr;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
    }
    
    .nav-item {
        min-width: 100px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-date {
        width: 60px;
        left: 0;
        right: auto;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 0;
        right: auto;
    }
    
    .timeline-dot {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .student-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item span {
        font-size: 1.5rem;
    }
    
    .schedule-table {
        grid-template-columns: 80px repeat(5, 1fr);
        font-size: 0.8rem;
    }
    
    .document-card {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-chat-window {
        width: calc(100vw - 60px);
        right: 30px;
        left: 30px;
    }
    
    .theme-switcher {
        bottom: 80px;
        right: 20px;
    }
    
    .ai-assistant {
        bottom: 20px;
        right: 20px;
    }
    
    .notification-center {
        width: calc(100vw - 60px);
        right: 30px;
        left: 30px;
    }
}

@media (max-width: 576px) {
    .auth-tabs {
        flex-direction: column;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .grades-summary {
        grid-template-columns: 1fr;
    }
    
    .department-cards,
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-table {
        display: block;
        overflow-x: auto;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
}