﻿/* Estilos para el MainLayout y AppBar */

/* Barra superior clara (línea IMF): el menú lateral azul lleva la marca */
.imf-topbar.mud-appbar {
    background: #ffffff !important;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.imf-topbar .mud-toolbar {
    gap: 12px;
}

.imf-topbar-toggle.mud-icon-button {
    color: #084D90;
    transition: background-color 0.15s ease;
}

    /* Anula el "salto" global de site.css en los botones */
    .imf-topbar-toggle.mud-icon-button:hover {
        transform: none;
        box-shadow: none;
        background-color: #EEF4FB;
    }

    .imf-topbar-toggle.mud-icon-button:focus-visible {
        outline: 2px solid #54D6C9;
        outline-offset: 2px;
    }

.imf-topbar-titulo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.2;
}

.imf-topbar-seccion {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #0F8F2F;
}

.imf-topbar-pagina {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.imf-topbar-fecha {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

    .imf-topbar-fecha .mud-icon-root {
        font-size: 16px;
        color: #084D90;
    }

@media (max-width: 600px) {
    .imf-topbar-fecha {
        display: none;
    }
}

/* Fondo del contenido principal */
.main-content-bg {
    background-color: #f0f2f5 !important;
    min-height: 100vh;
}

/* Breadcrumbs mejorados */
.mud-breadcrumbs {
    background-color: transparent;
    padding: 8px 0;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    color: #666;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #1976d2;
    text-decoration: none;
}

/* Badge de notificaciones */
.mud-badge {
    cursor: pointer;
}

/* Drawer en modo mini */
.mud-drawer.mud-drawer-mini {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación del contenido principal */
.mud-main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container principal */
.mud-container {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tooltips mejorados */
.mud-tooltip {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Mejoras responsivas */
@media (max-width: 960px) {
    .mud-appbar .mud-text {
        font-size: 1rem;
    }
    
    .mud-drawer {
        width: 100%;
    }
}

/* Sombra suave en el AppBar */
.mud-appbar.mud-elevation-2 {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
}
