/* Fondo General */
body {
    background: #E3F2FD;
    /* Azul muy claro */
    font-family: 'Poppins', sans-serif;
    color: #1A237E;
    /* Azul oscuro para el texto */
    margin: 0;
}

/* Encabezado Principal */
.masthead {
    background-color: #1976D2;
    /* Azul primario */
    color: white !important;
    min-height: 30rem;
    padding-top: 1rem;
}

.masthead h1 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    color: #BBDEFB;
    /* Azul muy claro */
}

@media (min-width: 992px) {
    .masthead h1 {
        font-size: 3.5rem;
    }
}

/* Navbar */
header {
    background-color: #0D47A1;
    /* Azul más oscuro */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-end {
    text-align: right;
    color: #90CAF9;
    /* Azul claro */
}

.text-end div:first-child {
    font-weight: 600;
    color: #E3F2FD;
    /* Azul muy claro */
}

.text-end div:last-child {
    color: #BBDEFB;
    /* Azul muy muy claro */
}

.rounded-circle {
    border: 2px solid #90CAF9;
    /* Azul claro */
    object-fit: cover;
}

/* Botones e íconos */
.navbar-toggler {
    border-color: #64B5F6 !important;
    /* Azul intermedio */
}

.icon-actions i {
    color: #64B5F6 !important;
}

.icon-actions a {
    margin-left: 0.75rem;
    text-decoration: none;
}

/* Sidebar */
#sidebar {
    background-color: #BBDEFB;
    /* Azul suave */
}

#sidebar .nav-link.active {
    background-color: #1976D2 !important;
    /* Azul primario */
    color: white !important;
    font-weight: bold !important;
}

#sidebar .nav-link {
    color: #1A237E !important;
    /* Texto azul oscuro */
}

#sidebar .nav-link:hover {
    background-color: #90CAF9 !important;
    /* Azul claro */
}

/* Botones */
.btn-primary {
    background-color: #1976D2 !important;
    border-color: #1976D2 !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #0D47A1 !important;
    border-color: #0D47A1 !important;
}

.btn-info {
    background-color: #64B5F6 !important;
    border-color: #64B5F6 !important;
    color: white !important;
}

.btn-info:hover {
    background-color: #42A5F5 !important;
    border-color: #42A5F5 !important;
}

/* Flash messages: centrado arriba */
.alert-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: auto;
    max-width: 90%;
    pointer-events: none;
}

.alert-container .alert {
    pointer-events: auto;
}

/* Responsive Ajustes */
@media (max-width: 768px) {
    .masthead {
        min-height: 20rem;
    }

    .masthead h1 {
        font-size: 2rem;
    }

    th,
    td {
        font-size: 0.9rem;
        padding: 8px;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

/* Botones en vistas específicas */
.roles-btn {
    margin-top: 20px;
}

.roles-btn button {
    margin: 10px;
}

/* Scroll Oculto */
.hide-scrollbar {
    overflow: hidden;
}

/* Footer Estilo Azul */
.footer-greenlinks {
    background-color: #0D47A1;
    /* Azul oscuro */
    color: #E3F2FD;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.footer-greenlinks h4 {
    color: #64B5F6 !important;
    /* Azul intermedio */
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-greenlinks p,
.footer-greenlinks a,
.footer-greenlinks i,
.footer-greenlinks span {
    color: #BBDEFB !important;
    /* Azul muy claro */
    opacity: 1 !important;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-greenlinks a:hover {
    color: #E3F2FD !important;
    /* Azul extra claro */
    text-decoration: none;
}

.footer-greenlinks .btn-outline-light {
    border-color: #64B5F6 !important;
    color: #64B5F6 !important;
    margin-right: 0.5rem;
    transition: all 0.3s ease-in-out;
}

.footer-greenlinks .btn-outline-light:hover {
    background-color: #64B5F6 !important;
    color: #0D47A1 !important;
}

.footer-greenlinks .container-xxl {
    max-width: 1320px;
    margin: 0 auto;
}

.footer-greenlinks .border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: #BBDEFB;
}

.footer-greenlinks .link-item {
    color: #90CAF9 !important;
    font-weight: 600;
}

.footer-greenlinks .link-item:hover {
    color: #E3F2FD !important;
}

#productosTable tbody tr td {
    background-color: transparent !important;
}