:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #ec4899;
    --bg-dark: #0f172a;
    --surface: rgba(30, 41, 59, 0.7);
    --surface-solid: #1e293b;
    --surface-hover: rgba(51, 65, 85, 0.8);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --danger: #ef4444;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Elements */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    border-radius: 50%;
    animation: float 10s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(236, 72, 153, 0.2);
    bottom: -200px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-glow);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

/* Base Utility Classes */
.hidden { display: none !important; }
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.4s ease forwards; }

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

.full-page {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; color: var(--text); }
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: 1rem; }
.w-100 { width: 100%; }

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 16px;
    transition: var(--transition);
}

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

.fab-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--primary-glow);
    transition: var(--transition);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px var(--primary-glow);
}

.btn-back {
    position: absolute;
    top: 24px;
    left: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* Inputs & Forms */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
}

.input-wrapper input,
.input-group input,
.input-group select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 14px 16px;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-wrapper input {
    padding-left: 44px;
}

.input-wrapper input:focus,
.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ==============================
   PRESENTATION & AUTH
============================== */
.presentation-content {
    max-width: 600px;
    width: 100%;
    padding: 20px;
    z-index: 10;
}

.hero-card {
    padding: 48px;
    text-align: center;
}

.hero-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.features-list {
    text-align: left;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.feature-item i { color: var(--success); }

.auth-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    justify-content: center;
}

.footer-credits {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-credits .copyright {
    margin-top: 12px;
    font-size: 0.8rem;
}

.footer-credits .highlight {
    color: var(--primary);
    font-weight: 600;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    position: relative;
    z-index: 10;
    text-align: center;
}

.auth-container h2 { margin-bottom: 8px; font-size: 2rem; }
.auth-container p.text-muted { margin-bottom: 32px; }

.auth-switch {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

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

/* ==============================
   APP LAYOUT
============================== */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--surface-solid);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 20;
}

.brand {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-menu {
    flex: 1;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.nav-item.active {
    background: var(--primary-glow);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
}

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

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details small { color: var(--text-muted); }

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 50%);
}

.topbar {
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: rgba(30, 41, 59, 0.3);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    margin-top: 40px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 { font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); }

/* Grid & Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.turma-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.turma-card:hover::before { width: 100%; opacity: 0.05; }

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

.turma-title { font-size: 1.2rem; font-weight: 600; }
.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.turma-info { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.turma-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

/* List / Alunos */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--transition);
}

.list-item:hover {
    background: var(--surface-hover);
    transform: translateX(5px);
    border-color: var(--primary);
}

.item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.item-details h4 { font-size: 1.1rem; margin-bottom: 4px; }
.item-details p { color: var(--text-muted); font-size: 0.9rem; }

/* Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 32px;
    align-items: start;
}

.profile-sidebar { padding: 32px; text-align: center; }
.profile-content { padding: 32px; }

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.profile-sidebar h2 { margin-bottom: 8px; }

.profile-details {
    margin-top: 32px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.detail-item i { color: var(--primary); width: 20px; }

.criteria-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.criteria-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.criteria-info h4 { margin-bottom: 8px; }
.criteria-info p { color: var(--text-muted); font-size: 0.9rem; }
.criteria-score input {
    width: 80px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

/* Modais */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    z-index: 1001;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

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

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-close:hover { color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification {
    background: var(--success);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s forwards;
    font-weight: 500;
}

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

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

/* ==============================
   LANDING PAGE
============================== */
.landing-page {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.landing-header {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    width: 100%;
}

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

.landing-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-header .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 48px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-section {
    text-align: left;
    max-width: 500px;
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-slogan {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.why-use-section {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    flex: 1;
    min-width: 350px;
    max-width: 600px;
    text-align: left;
}

.why-use-section h3 {
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.why-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-text strong {
    font-size: 1.1rem;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.benefit-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.landing-footer {
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.8);
    margin-top: auto;
    width: 100%;
}

.footer-cards-container {
    padding: 60px 48px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text);
}

.custom-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(30, 41, 59, 0.4);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--primary);
}

.feature-icon {
    color: var(--secondary);
    background: rgba(236, 72, 153, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 30px;
    text-align: center;
}

.footer-bottom .highlight {
    color: var(--primary);
    font-weight: 600;
}

/* ==============================
   RESPONSIVIDADE (MEDIA QUERIES)
============================== */
@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-section {
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 4rem;
    }

    .why-use-section {
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 16px 24px;
    }

    .landing-header .logo-text {
        font-size: 1.3rem;
    }

    .landing-main {
        padding: 40px 24px;
    }

    .hero-wrapper {
        gap: 40px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-slogan {
        font-size: 1.2rem;
    }

    .why-use-section {
        padding: 24px;
    }

    .why-use-section h3 {
        font-size: 1.5rem;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .footer-cards-container {
        padding: 40px 24px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

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

    .feature-card {
        padding: 30px 20px;
    }

    .auth-container {
        padding: 32px 24px;
    }

    .auth-container h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .landing-header .logo-text {
        display: none;
    }
}

/* Badge Variants */
.badge-success { background: rgba(16, 185, 129, 0.2) !important; color: #10b981 !important; }
.badge-primary { background: rgba(99, 102, 241, 0.2) !important; color: #6366f1 !important; }
.badge-warning { background: rgba(245, 158, 11, 0.2) !important; color: #f59e0b !important; }
.badge-danger { background: rgba(239, 68, 68, 0.2) !important; color: #ef4444 !important; }
