/* assets/css/style.css - Dolphins Manager ERP */

:root {
    --sidebar-bg: #1a202e;
    --sidebar-width: 250px;
    --sidebar-text: #a0aec0;
    --sidebar-text-active: #ffffff;
    --sidebar-hover: #2d3748;
    --accent-blue: #3182ce;
}

body {
    overflow-x: hidden;
    background-color: #f8f9fa;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* --- ESTRUCTURA --- */
#wrapper {
    display: flex;
    width: 100%;
    transition: all 0.3s ease;
}

#sidebar-wrapper {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--sidebar-bg) !important;
    flex-shrink: 0;
    transition: margin 0.25s ease-out;
    z-index: 2000; /* Sidebar arriba de todo */
}

#page-content-wrapper {
    flex-grow: 1;
    width: 100%;
    min-width: 0;
}

/* --- VISTA ESCRITORIO (PC) --- */
@media (min-width: 992px) {
    #sidebar-wrapper {
        margin-left: 0 !important;
    }
}

/* --- VISTA MÓVIL (IPHONE/ANDROID) --- */
@media (max-width: 991.98px) {
    #sidebar-wrapper {
        margin-left: -var(--sidebar-width) !important;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0 !important;
    }

    /* CAPA OSCURA DE CIERRE */
    #wrapper.toggled::after {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1500;
        display: block;
    }
}

/* --- ESTILOS DE LINKS --- */
.list-group-item {
    background: transparent !important;
    color: var(--sidebar-text) !important;
    border: none !important;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    transition: 0.2s;
}
.list-group-item:hover, .list-group-item.active {
    background-color: var(--sidebar-hover) !important;
    color: var(--sidebar-text-active) !important;
}
.list-group-item.active {
    border-left: 4px solid var(--accent-blue) !important;
}
.list-group-item i { width: 25px; margin-right: 10px; text-align: center; }

/* --- TABLAS RESPONSIVAS --- */
@media (max-width: 768px) {
    .table thead { display: none; }
    .table tr { display: block; margin-bottom: 1rem; border: 1px solid #eee; border-radius: 12px; background: #fff; padding: 10px; }
    .table td { display: flex; justify-content: space-between; border: none; padding: 8px 0; }
    .table td::before { content: attr(data-label); font-weight: bold; color: #718096; }
}

/* --- MONITOR GRILLA --- */
.lanes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}