/* ---------- ESTILO BASE CLARO ---------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9f9fb;
    color: #333;
    margin: 0;
}

/* Sidebar claro y minimalista */
.sidebar {
    height: 100vh;
    background-color: #fff;
    border-right: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    padding: 15px 10px;
    transition: all 0.3s ease;
    overflow-x: hidden;
    z-index: 2000;
}
.sidebar.collapsed {
    width: 70px;
}
.sidebar.collapsed .menu-text {
    display: none;
}
.sidebar.collapsed #sidebar-logo {
    max-width: 40px !important;
}
.sidebar a {
    display: flex;
    align-items: center;
    color: #333;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 6px;
    margin: 4px 0;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar a i {
    margin-right: 10px;
    font-size: 18px;
}
.sidebar a:hover {
    background-color: #f2f2f7;
    color: #007aff;
}
.sidebar a.active {
    background-color: #eaf3ff;
    color: #007aff;
    font-weight: 500;
}

/* Content */
.content {
    margin-left: 230px;
    padding: 20px;
    transition: margin-left 0.3s ease;
    background-color: #f9f9fb;
    min-height: 100vh;
}
.sidebar.collapsed ~ .content {
    margin-left: 80px;
}

/* Botones */
.btn-primary {
    background-color: #007aff;
    border-color: #007aff;
}
.btn-primary:hover {
    background-color: #0062cc;
    border-color: #0062cc;
}
.btn-outline-primary {
    color: #007aff;
    border-color: #007aff;
}
.btn-outline-primary:hover {
    background-color: #007aff;
    color: #fff;
}

/* Inputs focus */
.form-control:focus, .form-select:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 0.2rem rgba(0,122,255,.25);
}

/* Icono de mostrar/ocultar contraseña */
.toggle-password {
    color: #6c757d;
    font-size: 18px;
}
.toggle-password:hover {
    color: #000;
}

/* Tablas modernas */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.table-modern thead th {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px;
}
.table-modern tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f1f1;
    color: #333;
}
.table-modern tbody tr:hover {
    background-color: rgba(0, 122, 255, 0.05);
}
/* Acciones minimalistas */
.table-modern .action-btn {
    background: none;
    border: none;
    padding: 4px;
    margin: 0 2px;
    color: #555;
    cursor: pointer;
    transition: color 0.2s ease;
}
.table-modern .action-btn:hover {
    color: #007aff;
}
.table-modern .action-btn.delete:hover {
    color: #dc3545;
}

/* Sidebar como offcanvas en móvil */
@media (max-wi
/* --- Topbar --- */
.topbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Breadcrumb */
.topbar .breadcrumb {
    font-size: 14px;
    color: #666;
}
.topbar .breadcrumb .separator {
    margin: 0 5px;
    color: #aaa;
}

/* Avatar */
.avatar {
    width: 32px;
    height: 32px;
    background-color: #007aff;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Campana */
.icon-btn {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    position: relative;
}
.icon-btn:hover {
    color: #007aff;
}

/* Badge de notificaciones */
.badge-notify {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background-color: #ff3b30 !important; /* rojo iOS */
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    padding: 2px 6px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    min-width: 18px;
    text-align: center;
    animation: bounce 0.8s ease; /* animación al aparecer */
}

@keyframes bounce {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

/* Campanita con badge rojo arriba a la derecha */
.icon-btn {
    background: none;
    border: none;
    position: relative;
    font-size: 1.4rem;
    color: #444;
    cursor: pointer;
}

.icon-btn:hover {
    color: #007aff;
}

/* 🔔 Badge de notificaciones */
.badge-notify {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545; /* rojo */
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 50%;
    line-height: 1;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    animation: pulse 1.5s infinite;
}

/* ✨ Animación pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1.15);
        box-shadow: 0 0 8px 4px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}
