/* ================================================
   Vida Escolar - Custom Styles
   Apenas estilos específicos não cobertos pelo Bootstrap
   ================================================ */

/* ================================================
   Login Page - Sidebar Layout
   ================================================ */

.login-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.login-hero {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
}

.login-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.login-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
}

.login-sidebar {
    width: 450px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 4rem;
    color: #0d6efd;
}

.login-logo h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 1rem;
    color: #212529;
}

.login-logo p {
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Mobile - Fullscreen */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-hero {
        display: none;
    }

    .login-sidebar {
        width: 100%;
        box-shadow: none;
    }
}

/* ================================================
   Sidebar Menu Enhancements
   ================================================ */

.sidebar {
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    padding-left: 1.25rem;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* ================================================
   Card Hover Effect
   ================================================ */

.card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ================================================
   Utilities
   ================================================ */

/* Spinner pequeno para botões */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ================================================
   Validação Visual de Campos
   ================================================ */

/* Campos vazios com sombra vermelha */
.campo-vazio {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.campo-vazio:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.35) !important;
}

/* ================================================
   MudBlazor Dialog - Garantir fundo opaco
   ================================================ */

.mud-dialog {
    background-color: #fff !important;
}

.mud-overlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.mud-dialog-content {
    background-color: #fff !important;
}

.mud-dialog-actions {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
}
