
:root {
    --primary: #181818; /* negro profundo */
    --secondary: #ff9900; /* naranja del logo */
    --success: #27ae60;
    --danger: #e74c3c;
    --light: #f7f7f7; /* fondo más claro */
    --dark: #181818;
    --gray: #b0b0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f0f0;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}

/* Sidebar */
.sidebar {
    width: 246px;
    background-color: #232c0c;
    color: white;
    padding: 20px 0;
    transition: all 0.3s;
    flex-shrink: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 17px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary);
}

.sidebar-menu i {
    margin-right: 10px;
}

/* Sidebar Footer - Admin Info */
.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.admin-info:hover {
    background-color: rgba(72, 90, 26, 0.3);
    color: rgba(255, 255, 255, 1);
}

.admin-info i {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.admin-info:hover i {
    color: #ff9900;
}

.admin-info span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Admin Menu - Solo se muestra con click en flecha */
.admin-hover-menu {
    display: none !important;
    z-index: 1051 !important;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f0f0f0;
    min-width: 0;
}

.header img{
    height: 270px;
    margin-bottom: -192px;
    margin-top: -187px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  /* border-bottom: 1px solid #ddd; */
}

.header h1 {
   color: var(--primary);
  font-size: 1.6rem;
  padding: 18px;
  margin-top: 0;
  margin-bottom: 0;
}

.user-info {
   padding: 55px;
   display: flex;
   align-items: center;
   margin-top: -16px;
}

.user-infoAdmin{
    padding: 55px;
   display: flex;
   align-items: center;
   margin-top: 370px;
}

 .user-infoAdmin img{ 
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    /* background-color: #ffffff78; */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
    padding: 20px;
    transition: transform 0.3s;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: white;
    color: #333;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
    margin: -20px -20px 0 -20px;
    border-bottom: 4px solid #ff9900;
}

.card-title {
    font-size: 1rem;
    color: #110c0c;
}

.card-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.card-footer {
    font-size: 0.8rem;
    color: #110c0c;
    margin-top: 10px;
}

/* Tables */
.table-container {
    background-color: #ffffff78;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.342);
    padding: 20px;
    margin-bottom: 20px;
    overflow-x: auto;
}

table {
    width: 101%;
    background-color: #f4f4f4;;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 23px;
}

th, td {
   padding: 12px 26px;
    text-align: center;
    border-bottom: 2px solid #ccc;
}

th {
    background-color: #a3aa996b;
    color: var(--dark);
}

.table-dark th {
   background-color: #485a1a;
  color: white;
  padding: 15px 12px;
  font-weight: 600;
}

.accion{
     padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.baction{
    text-align: center;
}

tr:hover {
    background-color: rgba(0, 0, 0, 0.107);
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    background-color: #b79494;
}

.badge-success, .bg-success {
    background-color: #128845 !important;
    color: white !important;
}

.badge-warning {
    background-color: #e4b61f;
    color: #856404;
}

.badge-danger {
    background-color: #dd414e;
    color: #721c24;
}

.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

/* Forms */
.form-container {
    background-color: #ffffff78;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label, .form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control, .form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #485a1a;
    box-shadow: 0 0 0 0.25rem rgba(72, 90, 26, 0.25);
}

/* Botones */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-add{
    background: #915016;
    width:  225px;
    color: #fff;
}

.btn-add:hover{
    background-color: #a85e1f;
}

.btn-asignar{
    background-color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-detalle{
    background-color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-detalle:hover{
    background-color: #bac7bf;
}

.btn-primary {
   background: linear-gradient(135deg, #915016, #a85e1f);
    width:  193px;
    color: #fff;
}

.btn-primary:hover {
    background: #a85e1f;
    color: #fff;
}

.btn-addNew {
    background: #915016;
    width:  193px;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-addNew:hover {
    background: #a85e1f;
}

.btn-save {
    background: #eaede4;
    width:  193px;
    color: #0e0d0d;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-save:hover {
    background: #6c806c;
}

.btn-danger {
    background: #9f0505;
    color: #fff;
}

.btn-danger:hover {
    background: #d81b1b;
}

.btn-success {
    background-color: #ac5c1b;
    color: white;
}

.btn-success:hover {
    background-color: #bac7bf;
}

/* .btn-secondary {
   background: linear-gradient(135deg, #485a1a, #0d5e2a);
    color: white;
} */

.btn-secondary:hover {
    background-color: #54625a;
    color: white;
}

.btn-warning {
    background-color: #d23313;
    color: #ffffff;
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    color: #ffffff;
}

.btn-info {
    background-color: #485a1a;
    color: white;
}

.btn-info:hover {
    background-color: #6b8a1b;
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.btn-group .btn {
    margin-right: 2px;
    padding: 11px;
}

.btn-edit{
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    width:  47px;
}

/* Alertas */
.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-dismissible {
    position: relative;
    padding-right: 4rem;
}

.btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Estados específicos */
.estado-disponible {
    color: var(--success);
}

.estado-agotado {
    color: var(--danger);
}

.estado-vencido {
    color: #ffc107;
}


.navbar {
    background-color: #232c0c !important;
}

.navbar-brand {
    color: white !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: white !important;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
}

/* Modal overrides */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #485a1a;
    color: white;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 7px 9px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem;
}

.modal-title {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        flex-direction: row;
    }
    .sidebar {
        width: 180px;
        min-width: 110px;
        max-width: 200px;
        padding: 6px 0;
    }
    .main-content {
        padding: 6px;
    }
    .header h1 {
        font-size: 1.2rem;
    }
    .card-container {
        gap: 8px;
    }
    .card {
        padding: 12px;
        font-size: 0.98rem;
    }
    th, td {
        padding: 8px 10px;
        font-size: 0.98rem;
    }
    .sidebar-header h3 {
        font-size: 1.1rem;
    }
    .sidebar-menu a {
        font-size: 1rem;
        padding: 8px 12px;
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: row;
    }
    .sidebar {
        width: 180px;
        min-width: 80px;
        max-width: 140px;
        padding: 4px 0;
        position: relative;
    }
    .main-content {
        padding: 4.5px;
    }
    .header img {
        height: 100px;
        margin-bottom: -30px;
        margin-top: -30px;
    }
    .header h1 {
        font-size: 1.1rem;
    }
    .user-info, .user-infoAdmin {
        padding: 0.1px;
        margin-top: 10px;
    }
    .user-info img, .user-infoAdmin img {
        width: 30px;
        height: 30px;
    }
    .card-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 10px;
    }
    .card {
        padding: 1px;
        font-size: 0.rem;
    }
    th, td {
        padding: 6px 6px;
        font-size: 0.95rem;
    }
    .sidebar-header h3 {
        font-size: 0.9rem;
    }
    .sidebar-menu a {
        font-size: 0.7rem;
        padding: 7px 8px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        min-width: 0;
        max-width: 100vw;
        padding: 10px 0;
        position: relative;
    }
    .main-content {
        padding: 5px;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header img {
        height: 90px;
        margin-bottom: -30px;
        margin-top: -30px;
    }
    .user-info, .user-infoAdmin {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        margin-top: 10px;
    }
    .card-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .table-container {
        padding: 8px;
        font-size: 0.95rem;
    }
    table, th, td {
        font-size: 0.95rem;
        padding: 8px 6px;
    }
    th, td {
        padding: 8px 6px;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 100%;
        min-width: unset;
        padding: 5px 0;
    }
    .main-content {
        padding: 2px;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-bottom: 10px;
    }
    .header img {
        height: 60px;
        margin-bottom: -10px;
        margin-top: -10px;
    }
    .user-info, .user-infoAdmin {
        flex-direction: column;
        align-items: flex-start;
        padding: 5px;
        margin-top: 5px;
    }
    .card-container {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .table-container {
        padding: 3px;
        font-size: 0.9rem;
    }
    table, th, td {
        font-size: 0.9rem;
        padding: 5px 2px;
    }
    th, td {
        padding: 5px 2px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}


/* Botones responsive mejorados */
@media (max-width: 768px) {
    .btn-add {
        width: auto;
        min-width: 140px;
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .btn-group .btn {
        flex: 1;
        min-width: 35px;
    }
}

@media (max-width: 576px) {
    .btn-add {
        width: 100%;
        min-width: auto;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .btn-group .btn {
        padding: 6px 10px;
    }
}

/* Mejoras generales responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .table-responsive {
        border: none;
        box-shadow: none;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .row.g-3 {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row.g-3 > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Texto responsive */
@media (max-width: 768px) {
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    h1, .h1 {
        font-size: 1.5rem;
    }
    
    h2, .h2 {
        font-size: 1.25rem;
    }
    
    h3, .h3 {
        font-size: 1.1rem;
    }
    
    .small, small {
        font-size: 0.75rem;
    }
}

/* Botón de Ayuda */
.btn-help {
    background: linear-gradient(135deg, #4e6657, #3d5144);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(13, 94, 42, 0.3);
    color: white;
    text-decoration: none;
}

.btn-help:active {
    transform: translateY(0);
}

/* ========================================
   ESTILOS DEL DASHBOARD (app.blade.php)
   ======================================== */

#sidebarToggleBtn {
    color: #ff9900 !important;
    transition: all 0.3s ease !important;
    background: #0C0C0E !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    width: 28px !important;
    height: 28px !important;
    position: absolute !important;
    right: -14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-radius: 3px !important;
    z-index: 1041 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    font-size: 0.9rem !important;
}

#sidebarToggleBtn:hover {
    color: #ffb84d !important;
    background: #915016 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
}

#sidebarToggleBtn:focus {
    outline: none !important;
    color: #ff9900 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* Dashboard Container y Estilos */
.dash-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ic-total {
    background: #e0f2fe;
    color: #0369a1;
}

.ic-active {
    background: #dcfce7;
    color: #16a34a;
}

.ic-inactive {
    background: #fee2e2;
    color: #dc2626;
}

.ic-upcoming {
    background: #fef3c7;
    color: #b45309;
}

.stat-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 12px;
    margin: 8px 0 20px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #111827;
    transition: transform .2s ease, box-shadow .2s ease;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qi-users {
    background: #e0f2fe;
    color: #0369a1;
}

.qi-stores {
    background: #ede9fe;
    color: #6d28d9;
}

.qi-events {
    background: #ffe4e6;
    color: #be123c;
}

.qi-new {
    background: #dcfce7;
    color: #166534;
}

.quick-text {
    display: flex;
    flex-direction: column;
}

.quick-title {
    font-weight: 700;
}

.quick-hint {
    font-size: 12px;
    color: #6b7280;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   DRAWER/SIDEBAR STYLES (app.blade.php)
   ======================================== */

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: #0C0C0E;
    color: #fff;
    /* En escritorio/tablet el sidebar está visible por defecto */
    transform: translateX(0);
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 1100;
    box-shadow: 2px 0 12px rgba(0,0,0,0.3);
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
}

.drawer.open {
    transform: translateX(0);
}

.drawer.collapsed {
    width: 100px;
}

.drawer:not(.collapsed) {
    width: 320px;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    justify-content: center;
}

.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.drawer.collapsed .brand-logo {
    width: 50px;
    height: 50px;
}

.drawer:not(.collapsed) .brand-logo {
    width: 50px;
    height: 105px;
    padding: -21px;
}

.brand-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
    display: none;
}

.drawer.collapsed .brand-text {
    display: none;
}

.drawer:not(.collapsed) .brand-text {
    display: inline;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    transition: padding 0.3s ease;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 17px;
    transition: margin-bottom 0.3s ease;
}

.sidebar-menu a {
    transition: all 0.3s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #915016;
    border-left: 4px solid #915016;
}

.sidebar-menu i {
    margin-right: 10px;
    transition: all 0.3s ease;
}

/* Estado colapsado */
.drawer.collapsed .sidebar-menu a {
    padding: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    position: relative;
    z-index: 1;
}

.drawer:not(.collapsed) .sidebar-menu a {
    display: flex;
    padding: 10px 20px;
    font-size: inherit;
}

.drawer.collapsed .sidebar-menu a i {
    margin-right: 0;
    font-size: 1.5rem;
}

/* Tooltips para estado colapsado */
/* Cuando el sidebar está colapsado, mostramos tooltip naranja a la derecha */
.drawer.collapsed .sidebar-menu {
    overflow: visible !important;
}

.drawer.collapsed .sidebar-menu a::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #ff9900;
    color: #0C0C0E;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 12px;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.drawer.collapsed .sidebar-menu a:hover::after {
    opacity: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    position: relative;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
    transition: padding 0.3s ease;
    overflow: visible !important;
}

.drawer.collapsed .sidebar-footer {
    padding: 1rem 0.5rem;
    overflow: visible !important;
}

.drawer:not(.collapsed) .sidebar-footer {
    padding: 1rem;
}

/* Admin Info */
.admin-info {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-info:hover {
    background-color: rgba(145, 80, 22, 0.5);
    color: rgba(255, 255, 255, 1);
}

.admin-info i {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    font-size: 1.5rem;
}

.admin-info:hover i {
    color: #915016;
}

.admin-info span {
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.drawer.collapsed .admin-info {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    flex: 1;
}

.admin-info-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.admin-info-container .admin-info {
    flex: 1;
}

.admin-menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ff9900;
    border-radius: 6px;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.admin-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffb84d;
}

.admin-menu-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.admin-menu-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.drawer.collapsed .admin-info span {
    display: none;
}

.drawer:not(.collapsed) .admin-info span {
    display: inline;
}

/* Admin Hover Wrapper */
.admin-hover-wrapper {
    position: relative;
    display: block;
}

.admin-hover-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    min-width: 180px;
    display: none !important;
    z-index: 1051;
    margin-bottom: 10px;
}

.drawer.collapsed .admin-hover-menu {
    position: absolute !important;
    left: auto !important;
    right: -220px !important;
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    margin-bottom: 0 !important;
    min-width: 200px !important;
}

.admin-hover-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .5rem;
    border-radius: 6px;
    color: #1f2937;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #f3f4f6;
    outline: none;
}

/* Main Content */
#mainContent {
    width: 100%;
    position: relative;
    z-index: 0;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Sidebar más estrecho en tablets/móviles hasta 992px */
@media (max-width: 992px) {
    .sidebar {
        width: 180px;
        min-width: 80px;
        max-width: 220px;
        padding: 4px 0;
        padding-bottom: 4px;
    }
}

/* Layout adjustments */
@media (min-width: 1024px) {
    #mainContent {
        margin-left: 320px;
    }
    
    body.sidebar-collapsed #mainContent {
        margin-left: 100px;
    }
}

@media (max-width: 1023.98px) {
    #mainContent {
        margin-left: 0;
    }

    /* En móviles el sidebar actúa como drawer cerrado por defecto */
    .drawer {
        transform: translateX(-100%);
    }
}

/* Header */
.header {
    position: relative;
    z-index: 1050;
}

/* Backdrop cuando drawer está abierto */
@media (max-width: 1023.98px) {
    body.sidebar-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 1030;
    }
}