/* Estilos personalizados para Nube Json Inspecciones Test */

/* Variables globales */
:root {
    --sidebar-width: 280px;
    --header-height: 60px;
    --primary-color: #2073e6;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --transition-speed: 0.3s;
    
    /* Colores pastel oscuros */
    --pastel-blue: #8AA8DB;
    --pastel-pink: #C9919A;
    --pastel-purple: #9D89C7;
    --pastel-mint: #7BC690;
    --pastel-peach: #DBA78A;
    --pastel-yellow: #D5CB89;
    
    /* Colores para gradientes */
    --gradient-start: #8A70B7;
    --gradient-middle: #A584BF;
    --gradient-end: #BB7D8F;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
}

/* Estilos del sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height));
    transition: all 0.3s;
    background-color: var(--dark-color);
    box-shadow: inset -5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    border-radius: 0.5rem;
    margin: 0.25rem 1rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
}

/* Estilos para el contenido principal */
.main-content {
    min-height: calc(100vh - var(--header-height) - 56px); /* 56px = altura de footer */
}

/* Estilos para tarjetas */
.card {
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* Estilos para botones */
.btn {
    border-radius: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
}

.btn-lg {
    font-size: 1.1rem;
}

/* Estilos para tablas */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* Estilos del header */
.header-main {
    z-index: 1030;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-main h1, .header-main .text-white {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.loading-bar {
    z-index: 1031;
    transition: opacity 0.3s ease-in-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Estilos para notificaciones */
.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bordes redondeados para elementos interactivos */
.btn, .form-control, .card, .dropdown-menu, .badge {
    border-radius: 0.5rem;
}

/* Ajustes para el header con tema pastel */
.header-main .btn-outline-light {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    backdrop-filter: blur(5px);
    color: #ffffff;
    font-weight: 500;
}

.header-main .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Ajustes para la barra de búsqueda en el header */
.header-main .form-control {
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
}

.header-main .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Efectos sutiles para las notificaciones */
.position-absolute.top-0.start-100.translate-middle.badge {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Estructura principal - importante para la disposición correcta */
.container-fluid, .row, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Estilo para el contenido principal */
.main-content {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    transition: all var(--transition-speed) ease;
}

/* En pantallas grandes, el contenido se desplaza para dar espacio al sidebar */
@media (min-width: 992px) {
    .main-content {
        margin-left: 0; /* El contenido no necesita desplazarse porque el sidebar está en su propia columna */
    }
}

/* Estilos para dispositivos móviles */
@media (max-width: 991.98px) {
    body {
        padding-top: 0; /* Eliminar cualquier padding superior */
    }
    
    .sidebar {
        position: fixed;
        top: var(--header-height); /* Ajustar para que esté justo debajo del header */
        left: -100%;
        z-index: 1040; /* Mayor que el z-index del header */
        width: 100%;
        max-width: 280px;
        height: calc(100vh - var(--header-height));
        overflow-y: auto;
        transition: left var(--transition-speed) ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    /* Ajuste de la barra de búsqueda en móviles */
    .header-main + .bg-light {
        position: sticky;
        top: var(--header-height);
        z-index: 1020;
    }
}
