﻿
/* =======================================
   ESTILOS GENERALES
======================================= */
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: rgb(23,23,32);
    color: white;
}

/* =======================================
   SIDEBAR PRINCIPAL
======================================= */
.sidebar {
    width: 260px;
    background: rgb(23,23,32);
    color: white;
    height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    transition: all .3s ease;
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

    /* SIDEBAR COLAPSADO */
    .sidebar.collapsed {
        width: 70px;
    }

/* =======================================
   HEADER DEL SIDEBAR
======================================= */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

/* AVATAR */
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

/* INFORMACIÓN USUARIO */
.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.empresa {
    font-size: 20px;
    margin-top:30px;
    font-weight: 600;
    color: white;
    margin-bottom:30px;
}

.usuario {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* OCULTAR TEXTO CUANDO SIDEBAR ESTÁ COLAPSADO */
.sidebar.collapsed .user-info {
    display: none;
}

/* =======================================
   MENU
======================================= */
.sidebar-menu {
    margin-top: 10px;
}

/* BOTONES DEL MENU */
.menu-btn {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all .25s ease;
    display: flex;
    align-items: center;
}

    /* HOVER PROFESIONAL */
    .menu-btn:hover {
        background: rgba(255,255,255,0.10);
        transform: translateX(4px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    }

    /* BOTONES ESPECIALES */
    .menu-btn.info:hover {
        background: rgba(59,130,246,0.25);
    }

    .menu-btn.danger:hover {
        background: rgba(239,68,68,0.25);
    }

    /* =======================================
   ICONOS LUCIDE VISIBLES
======================================= */
    .menu-btn i,
    .menu-btn svg {
        width: 18px;
        height: 18px;
        margin-right: 10px;
        color: #cbd5e1; /* blanco moderno visible sobre fondo oscuro */
        stroke-width: 2;
        transition: color .25s ease;
    }

    .menu-btn:hover i,
    .menu-btn:hover svg {
        color: #60a5fa; /* azul más claro al hover */
    }

/* Icono del botón hamburguesa */
.mobile-toggle i,
.mobile-toggle svg {
    width: 22px;
    height: 22px;
    color: #cbd5e1; /* gris claro visible */
    transition: color .25s ease;
}

.mobile-toggle:hover i,
.mobile-toggle:hover svg {
    color: white; /* blanco moderno al hover */
}

/* =======================================
   CONTENIDO PRINCIPAL
======================================= */
.main-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
    transition: all .3s ease;
    background: rgb(23,23,32);
}

/* CUANDO SIDEBAR ESTÁ COLAPSADO */
.sidebar.collapsed + .main-content {
    margin-left: 70px;
}

/* =======================================
   TOPBAR MÓVIL
======================================= */
.mobile-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgb(23,23,32);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    
}

.mobile-empresa {
    font-size: 15px;
    font-weight: 900;
    
}

/* BOTÓN HAMBURGUESA */
.mobile-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}

/* =======================================
   RESPONSIVE TABLET
======================================= */
@media (max-width:900px) {

    .mobile-topbar {
        display: flex;
    }

    .sidebar {
        left: -260px;
        top: 55px;
        height: calc(100vh - 55px);
    }

        .sidebar.collapsed {
            left: 0;
            width: 260px;
        }

    .main-content {
        margin-left: 0;
        margin-top: 60px;
        padding: 25px;
    }
}

/* =======================================
   RESPONSIVE CELULAR
======================================= */
@media (max-width:600px) {

    .avatar {
        width: 36px;
        height: 36px;
    }

    .main-content {
        padding: 20px;
    }

    .menu-btn {
        font-size: 13px;
        padding: 10px;
    }

    .mobile-empresa {
        font-size: 14px;
    }
}
