/* assets/css/style.css */

:root {
    --navy: #1a3c5e;
    --navy-light: #234d78;
    --blue: #2a6496;
    --blue-light: #3a7fc1;
    --accent: #e8a020;
    --accent-light: #f5c154;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --pending: #7c3aed;
    --bg: #f0f4f8;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== NAVBAR ===== */
.main-navbar {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 0 0;
    box-shadow: 0 2px 16px rgba(26,60,94,0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 62px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 12px 0;
}

.brand-icon { font-size: 22px; }

.brand-text {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.nav-link {
    color: rgba(255,255,255,0.78) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 5px 14px 5px 8px;
    border: 1px solid rgba(255,255,255,0.18);
}

.user-type-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-admin { background: var(--accent); color: #1a1a1a; }
.badge-coordenador { background: #8b5cf6; color: #fff; }
.badge-aluno { background: var(--blue-light); color: #fff; }

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.logout-btn {
    color: rgba(255,255,255,0.65) !important;
    font-size: 16px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.logout-btn:hover { color: #fff !important; }

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 32px 0;
}

/* ===== CARDS ===== */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--bg-card);
    transition: box-shadow 0.2s;
}

.card:hover { box-shadow: var(--shadow-hover); }

.card-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: #fff;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    padding: 18px 24px;
    border: none;
}

.card-header h5, .card-header h4 {
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== STAT CARDS ===== */
.stat-card {
    border-radius: var(--radius);
    padding: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-card.navy { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.stat-card.blue { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.stat-card.success { background: linear-gradient(135deg, #15803d, #22c55e); }
.stat-card.danger { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.stat-card.warning { background: linear-gradient(135deg, #b45309, #f59e0b); }
.stat-card.purple { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }

.stat-card .stat-icon {
    font-size: 32px;
    opacity: 0.3;
    position: absolute;
    bottom: 12px;
    right: 18px;
}

.stat-card .stat-number {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
    margin-top: 6px;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--navy-light), var(--blue-light));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42,100,150,0.35);
    color: #fff;
}

.btn-success { background: var(--success); border-color: var(--success); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-outline-primary { color: var(--blue); border-color: var(--blue); }
.btn-outline-primary:hover { background: var(--blue); color: #fff; }

/* ===== BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pendente { background: #ede9fe; color: var(--pending); }
.status-aprovado { background: #dcfce7; color: var(--success); }
.status-reprovado { background: #fee2e2; color: var(--danger); }

/* ===== TABLES ===== */
.table-custom {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table-custom thead th {
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
}

.table-custom tbody tr {
    transition: background 0.15s;
}

.table-custom tbody tr:hover { background: #f8fafc; }

.table-custom tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

/* ===== FORMS ===== */
.form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(42,100,150,0.12);
    outline: none;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #4a90d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    font-size: 52px;
    display: block;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.login-logo h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    line-height: 1.3;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 4px 0 0;
}

.login-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header p {
    color: var(--text-muted);
    margin: 4px 0 0;
    font-size: 14px;
}

/* ===== PROFESSOR FILTER ===== */
.professor-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.professor-list::-webkit-scrollbar { width: 6px; }
.professor-list::-webkit-scrollbar-track { background: #f1f5f9; }
.professor-list::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

.professor-item {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.professor-item:last-child { border-bottom: none; }
.professor-item:hover { background: #f0f7ff; }
.professor-item.selected { background: #e0f0ff; }

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success { background: #dcfce7; color: #15803d; }
.alert-danger { background: #fee2e2; color: #b91c1c; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1d4ed8; }

/* ===== FILE UPLOAD ===== */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--blue);
    background: #f0f7ff;
}

.upload-zone .upload-icon { font-size: 40px; opacity: 0.4; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 18px;
    font-size: 12px;
    margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-header { flex-direction: column; }
    .stat-card { min-height: 90px; }
    .login-card { padding: 32px 24px; margin: 16px; }
    .main-content { padding: 20px 0; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.4s ease both; }
.fade-in-1 { animation-delay: 0.05s; }
.fade-in-2 { animation-delay: 0.1s; }
.fade-in-3 { animation-delay: 0.15s; }
.fade-in-4 { animation-delay: 0.2s; }
