/* interfaz/dashboard-style.css */
body { font-family: 'Poppins', sans-serif; background-color: #f8f9fa; overflow-x: hidden; margin: 0; }
:root { 
    --sidebar-blue: #1169c4; 
    --topbar-gradient: linear-gradient(90deg, #e4007c 0%, #0069d9 100%);
    --text-dark: #1a2b4c;
    --input-bg: #E9ECEF;
}

/* Barra Superior */
.top-header { 
    background: var(--topbar-gradient); 
    height: 45px; 
    color: white; 
    display: flex; 
    align-items: center; 
    padding: 0 1.5rem; 
    font-size: 0.85rem;
    font-weight: 300;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
}

/* Sidebar */
.sidebar { 
    background-color: #004393; 
    width: 240px; 
    height: 100vh; 
    position: fixed; 
    top: 0; 
    left: 0; 
    padding-top: 60px; 
    color: white; 
    display: flex;
    flex-direction: column;
    z-index: 1040;
    overflow-y: auto; /* Habilitar scroll */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Personalización del scrollbar (Chrome, Edge, Safari) */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.sidebar-nav {
    flex-grow: 1;
    padding: 10px 0;
}

.sidebar-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 10px 20px;
    opacity: 0.7;
    font-weight: 600;
    letter-spacing: 1px;
}

.sidebar-nav .nav-link {
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.sidebar-logo-container {
    margin-top: auto;
    padding: 0;
    text-align: left;
}

.sidebar-logo-container img {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

.sidebar-logo-v {
    width: 35px;
    filter: brightness(0) invert(1);
}

.sidebar-logo-text p { font-size: 0.55rem; letter-spacing: 2px; margin: 0; opacity: 0.8; }
.sidebar-logo-text h4 { font-size: 1.6rem; font-weight: 900; margin: 0; line-height: 0.8; }

/* Main Content */
.main-content { 
    margin-left: 240px; 
    margin-top: 45px; 
    padding: 40px; 
    min-height: calc(100vh - 45px);
}

.page-title h2 { color: var(--text-dark); font-weight: 700; font-size: 2rem; margin-bottom: 0.2rem; }
.page-subtitle { color: #6c757d; font-size: 0.95rem; margin-bottom: 2rem; }

/* Cards */
.card-custom { 
    border: 1px solid #dee2e6; 
    border-radius: 12px; 
    background: white; 
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}

.btn-blue { 
    background-color: #1169c4; 
    color: white; 
    border: none; 
    border-radius: 6px; 
    padding: 8px 25px; 
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-blue:hover { color: white; background-color: #0d54a1; }

.form-label { color: #333; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.input-gray { background-color: #f1f3f5; border: 1px solid #dee2e6; border-radius: 6px; padding: 10px; }
.input-white { background-color: white; border: 1px solid #1169c4; border-radius: 6px; padding: 10px; }

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); transition: 0.3s; }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 20px; }
}
