/* ===== VARIABLES Y RESET ===== */
:root {
    --primary-color: #0E1621;
    --primary-dark: #0A1018;
    --accent-color: #3498db;
    --danger-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-primary: #2C3E50;
    --text-secondary: #7f8c8d;
    --bg-light: #f8f9fa;
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

#nombreSiderbar{
    display: none;
}

#titutlos{
    display: block;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT MEJORADO ===== */
.app-container {
    display: flex;
    position: relative;
    width: 100%;
}

/* ===== HEADER 100% FIXED ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: white;
    z-index: 1100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: var(--transition);
    border-bottom: 1px solid #eee;
}

/* Header izquierda - Con botón menú móvil */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: var(--bg-light);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: var(--accent-color);
    color: white;
}

.mobile-menu-btn i {
    font-size: 1.1rem;
}

/* CONTROLES DEL HEADER (AÑADIDOS) */
.header-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-right: 15px;
}

.btn-control {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: var(--bg-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    flex-shrink: 0;
}

#btnToggleSidebar{
    background-color: transparent;
}

#toggleIcon{
   color: white;
}

.btn-control:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.company-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.company-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.company-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header derecha */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Controles guardia - IMÁGENES OPTIMIZADAS */
.guardia-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-panic {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.btn-panic:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.4);
}

.btn-panic:active {
    transform: scale(0.95);
}

.btn-panic img {
    width: 70%;
    height: 90%;
    object-fit: contain;
    transition: var(--transition);
}

.notification-badge {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.btn-notification {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-notification:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.btn-notification img {
    width: 100%;
    height: 20px;
    object-fit: contain;
    transition: var(--transition);
}

.btn-notification i {
    font-size: 1.1rem;
}

.notification-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: var(--transition);
    white-space: nowrap;
}

.notification-badge[data-count="0"]::after,
.notification-badge:not([data-count])::after {
    display: none;
}

/* Dropdown notificaciones - CORREGIDO */
.notification-dropdown {
    position: relative;
}

.notification-dropdown .dropdown-toggle::after {
    display: none !important;
}

.dropdown-notifications {
    min-width: 320px;
    max-width: 95vw;
    padding: 0;
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    animation: dropdownSlideIn 0.3s ease;
    margin-top: 10px !important;
    z-index: 2000 !important;
}

.dropdown-notifications.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-notifications .dropdown-header {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-notifications .dropdown-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.dropdown-notifications .notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
    cursor: pointer;
    background: white;
}

.dropdown-notifications .notification-item:hover {
    background-color: #f8f9fa;
}

.dropdown-notifications .notification-item:last-child {
    border-bottom: none;
}

.dropdown-notifications .notification-item .notification-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.dropdown-notifications .notification-item .notification-message {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Dropdown de perfil - CORREGIDO */
.user-profile {
    position: relative;
}

.user-profile .dropdown-toggle::after {
    display: none !important;
}

.btn-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 0;
    max-width: 250px;
    flex-shrink: 0;
}

.btn-profile:hover {
    background: #e9ecef;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    text-align: left;
    overflow: hidden;
}

.profile-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.profile-role {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.btn-profile i.fa-chevron-down {
    font-size: 0.8rem;
    color: white;
    transition: var(--transition);
    flex-shrink: 0;
}

.dropdown-profile {
    min-width: 220px;
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 5px 0;
    animation: dropdownSlideIn 0.3s ease;
    margin-top: 10px !important;
    z-index: 2000 !important;
}

.dropdown-profile.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown-profile .dropdown-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-profile .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.dropdown-profile .dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.dropdown-profile .dropdown-item.text-danger {
    color: var(--danger-color) !important;
}

.dropdown-profile .dropdown-item.text-danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* ===== SIDEBAR MODERNA ===== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 1090;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    will-change: transform;
}

.sidebar.mobile-open {
    transform: translateX(0);
}

/* SIDEBAR COLAPSADO (DESKTOP) */
.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .menu-text,
.sidebar.collapsed .user-info-mini {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .menu-item i {
    margin-right: 0;
}

.sidebar.collapsed .badge-count {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    padding: 2px 5px;
}

@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: var(--sidebar-width);
        transition: var(--transition);
    }
    
    body {
        padding-left: var(--sidebar-width);
        transition: var(--transition);
    }
    
    /* Cuando sidebar está colapsado */
    .sidebar.collapsed ~ .header {
        left: var(--sidebar-collapsed);
    }
    
    .sidebar.collapsed ~ .app-container .main-content {
        margin-left: var(--sidebar-collapsed);
    }
    
    body.sidebar-collapsed {
        padding-left: var(--sidebar-collapsed);
    }
}

/* Logo sidebar - IMAGEN OPTIMIZADA */
.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    padding: 5px;
}

.logo-image {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.sidebar-logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Menú sidebar */
.sidebar-menu {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 0 10px 4px;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 8px;
    position: relative;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    border-left-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: inset 4px 0 0 rgba(52, 152, 219, 0.3);
}

.menu-item.active {
    background: rgba(52, 152, 219, 0.25);
    color: white !important;
    border-left: 3px solid var(--accent-color);
    box-shadow: inset 0 0 15px rgba(52, 152, 219, 0.2);
}

.menu-item i {
    font-size: 1.1rem;
    min-width: 28px;
    text-align: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.menu-text {
    transition: var(--transition);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    flex: 1;
}

.badge-count {
    background: var(--danger-color);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
    animation: pulse 2s infinite;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 15px 15px;
}

.logout-item {
    color: #ff6b6b !important;
    margin-top: 10px;
}

.logout-item:hover {
    background: rgba(255, 107, 107, 0.1) !important;
    border-left-color: #ff6b6b !important;
}

/* Footer sidebar */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.user-info-mini {
    overflow: hidden;
    min-width: 0;
    flex: 1;
    transition: var(--transition);
}

.user-name-mini {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
    flex: 1;
    padding: 25px;
    min-height: calc(100vh - var(--header-height));
    background: var(--bg-light);
    transition: var(--transition);
    width: 100%;
}

/* ===== OVERLAY PARA MÓVIL ===== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1089;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE DESIGN COMPLETO ===== */

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
    body {
        padding-left: 0 !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .company-name {
        font-size: 1.2rem;
    }
    
    .company-subtitle {
        font-size: 0.8rem;
    }
    
    .header-controls {
        display: none;
    }
    
    .guardia-controls {
        gap: 6px;
    }
    
    .btn-panic {
        width: 50px;
        height: 50px;
    }
    
    .btn-panic img {
        width: 70%;
        height: 90%;
    }
    
    .btn-notification {
        width: 50px;
        height: 50px;
    }
    
    .btn-notification img {
        width: 100%;
        height: 18px;
    }
    
    .profile-info {
        display: none;
    }
    
    .btn-profile {
        padding: 6px 10px;
        max-width: 60px;
    }
    
    .profile-avatar {
        width: 38px;
        height: 38px;
    }
    
    .main-content {
        padding: 20px;
        margin-left: 0 !important;
    }
    
    .sidebar {
        width: 280px !important;
    }
    
    .dropdown-notifications,
    .dropdown-profile {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px) !important;
        top: 70px !important;
        width: 90vw !important;
        max-width: 400px !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
    #btnToggleSidebar{
        display: none;
    }
}

/* Móvil (≤ 768px) */
@media (max-width: 768px) {
    .header {
        height: 70px;
        padding: 0 15px;
    }
    
    body {
        padding-top: 65px;
    }
    
    .company-name {
        font-size: 1.1rem;
        max-width: 180px;
    }
    
    .company-subtitle {
        font-size: 0.78rem;
    }
    
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .guardia-controls {
        gap: 5px;
    }
    
    .btn-panic {
        width: 50px;
        height: 50px;
    }
    
    .btn-panic img {
        width: 70%;
        height: 90%;
    }
    
    .btn-notification {
        width: 50px;
        height: 50px;
    }
    
    .btn-notification img {
        width: 100%;
        height: 16px;
    }
    
    .btn-profile {
        padding: 5px 8px;
        max-width: 100px;
    }
    
    .profile-avatar {
        width: 36px;
        height: 36px;
    }
    
    .main-content {
        padding: 15px;
        margin-top: 0;
    }
}

/* Móvil pequeño (≤ 576px) */
@media (max-width: 576px) {
    .header {
        height: 70px;
        padding: 0 12px;
    }
    
    body {
        padding-top: 60px;
    }
    
    .company-name {
        font-size: 1rem;
        max-width: 150px;
    }
    
    .company-subtitle {
        display: none;
    }
    
    .mobile-menu-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    
    .guardia-controls {
        gap: 4px;
    }
    
    .btn-panic {
        width: 50px;
        height: 50px;
    }
    
    .btn-panic img {
        width: 70%;
        height: 90%;
    }
    
    .btn-notification {
        width: 50px;
        height: 50px;
    }
    
    .btn-notification img {
        width: 100%;
        height: 15px;
    }
    
    .btn-profile {
        padding: 4px 6px;
        max-width: 100px;
    }
    
    .profile-avatar {
        width: 34px;
        height: 34px;
    }
    
    .main-content {
        padding: 12px;
    }
}

@media (max-width: 520px) {
    #nombreSiderbar{
        display: block;
    }

    #titutlos{
        display: none;
    }

    #nombreSiderbar .company-name{
        color: white;
    }
}

/* Móvil muy pequeño (≤ 400px) */
@media (max-width: 400px) {
    .header {
        padding: 0 10px;
    }

    .header-left{
      min-width: 45px;  
    }
    
    .company-name {
        font-size: 0.9rem;
        max-width: 120px;
    }
    
    .mobile-menu-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .guardia-controls {
        gap: 3px;
    }
    
    .btn-panic,
    .btn-notification {
        width: 50px;
        height: 50px;
    }
    
    .btn-panic img {
        width: 70%;
        height: 90%;
    }
    
    .btn-notification img {
        width: 100%;
        height: 14px;
    }
    
    .btn-profile {
        padding: 3px 5px;
        max-width: 100px;
    }
    
    .profile-avatar {
        width: 32px;
        height: 32px;
    }
    
    .main-content {
        padding: 10px;
    }

    .btn-profile{
        gap: 0px;
    }
}

/* Utilidades */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar personalizado */
.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Asegurar que todas las imágenes sean responsivas */
img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Optimizar botones para touch */
@media (hover: none) and (pointer: coarse) {
    .btn-panic,
    .btn-notification,
    .btn-control,
    .mobile-menu-btn,
    .btn-profile,
    .menu-item {
        min-height: 50px;
        min-width: 50px;
    }
    
    .btn-panic:active,
    .btn-notification:active,
    .btn-control:active,
    .mobile-menu-btn:active,
    .btn-profile:active {
        opacity: 0.8;
        transform: scale(0.95);
    }
    
    .menu-item {
        padding: 14px 15px;
    }
}

/* Badge animado para notificaciones */
.notification-badge[data-count]:not([data-count="0"]) .btn-notification {
    position: relative;
}

.notification-badge[data-count]:not([data-count="0"]) .btn-notification::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: blink 2s infinite;
    z-index: 1;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Mejorar accesibilidad de focus */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Suavizar transiciones */
* {
    scroll-behavior: smooth;
}

/* ===== AVATAR PLACEHOLDERS PREMIUM ===== */
.avatar-placeholder-premium {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.avatar-placeholder-premium.role-centralista {
    background: linear-gradient(135deg, #8e44ad, #3498db);
}

.avatar-placeholder-premium.role-supervisor {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.avatar-placeholder-premium.role-propietario {
    background: linear-gradient(135deg, #1abc9c, #2ecc71);
}

.avatar-placeholder-premium.role-personal {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
}

.avatar-placeholder-premium.role-guardia {
    background: linear-gradient(135deg, #576574, #222f3e);
}

/* ===== MINI AVATAR PLACEHOLDERS FOR SIDEBAR FOOTER ===== */
.user-avatar-mini-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--accent-color);
    flex-shrink: 0;
}

.user-avatar-mini-placeholder.role-centralista {
    background: linear-gradient(135deg, #8e44ad, #3498db);
}

.user-avatar-mini-placeholder.role-supervisor {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.user-avatar-mini-placeholder.role-propietario {
    background: linear-gradient(135deg, #1abc9c, #2ecc71);
}

.user-avatar-mini-placeholder.role-personal {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
}

.user-avatar-mini-placeholder.role-guardia {
    background: linear-gradient(135deg, #576574, #222f3e);
}