/* ═══════════════════════════════════════════════════════
   YBER Enterprise UI v2 — Dark Shell Design
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --yber-dark: #0f172a;
    --yber-dark-mid: #1e293b;
    --yber-dark-light: #334155;
    --yber-accent: #4f46e5;
    --yber-accent-light: #818cf8;
    --yber-surface: #f1f5f9;
    --yber-border: #e2e8f0;
    --yber-text-light: #e2e8f0;
    --yber-text-muted-light: #94a3b8;
    --yber-text-dark: #1e293b;
    --yber-sidebar-w: 250px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--yber-surface);
    color: var(--yber-text-dark);
    -webkit-font-smoothing: antialiased;
}

/* ─── SIDEBAR ─── */
.yber-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--yber-sidebar-w);
    background: linear-gradient(180deg, var(--yber-dark) 0%, var(--yber-dark-mid) 100%);
    color: #cbd5e1;
    z-index: 40;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

/* Logo — mismo tono oscuro, integrado */
.yber-sidebar-logo {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.yber-sidebar-logo img {
    height: 38px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.yber-sidebar-section {
    padding: 20px 12px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #475569;
}

.yber-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    margin: 2px 8px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.yber-nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
}

.yber-nav-item.active {
    background: rgba(79, 70, 229, 0.15);
    color: #a5b4fc;
    font-weight: 600;
}

.yber-nav-item .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.yber-nav-item.active .nav-icon {
    opacity: 1;
    color: #818cf8;
}

/* User section — bottom */
.yber-sidebar-user {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.2);
}

.yber-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    background: linear-gradient(135deg, var(--yber-accent), var(--yber-accent-light));
    color: white;
    flex-shrink: 0;
}

.yber-sidebar-user .user-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.yber-sidebar-user .user-role {
    font-size: 11px;
    color: #64748b;
}

/* Scrollbar */
.yber-sidebar::-webkit-scrollbar { width: 4px; }
.yber-sidebar::-webkit-scrollbar-track { background: transparent; }
.yber-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* ─── MAIN CONTENT ─── */
.yber-main {
    margin-left: var(--yber-sidebar-w);
    min-height: 100vh;
}

/* ─── TOPBAR — DARK SHELL ─── */
.yber-topbar {
    background: var(--yber-dark-mid);
    padding: 0 28px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.yber-topbar h2,
.yber-topbar .font-semibold {
    color: var(--yber-text-light) !important;
    font-size: 15px;
    font-weight: 600;
}

.yber-topbar p,
.yber-topbar .text-gray-400,
.yber-topbar .text-sm {
    color: var(--yber-text-muted-light) !important;
}

.yber-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yber-topbar-right span {
    color: var(--yber-text-muted-light) !important;
    font-size: 12px;
}

/* Notification bell en topbar oscura */
.yber-topbar svg {
    color: var(--yber-text-muted-light);
}
.yber-topbar a, .yber-topbar button {
    color: var(--yber-text-muted-light);
}
.yber-topbar a:hover, .yber-topbar button:hover {
    color: var(--yber-text-light);
}

/* Content area */
.yber-content {
    padding: 24px;
    max-width: 1400px;
}

/* ─── CARDS ─── */
.yber-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--yber-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
}

.yber-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ─── TABLES ─── */
table thead th {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b !important;
    background: #f8fafc !important;
}

table tbody tr {
    transition: background 0.15s ease;
}

table tbody tr:hover {
    background: #f1f5f9 !important;
}

/* ─── OVERRIDE BREEZE NAV ─── */
nav.bg-white.border-b.border-gray-100 {
    display: none !important;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
    .yber-sidebar { transform: translateX(-100%); }
    .yber-sidebar.open { transform: translateX(0); }
    .yber-main { margin-left: 0; }
    .yber-content { padding: 16px; }
}

/* ─── BOTONES CONSISTENTES ─── */
button[type="submit"],
.yber-btn,
button.bg-indigo-600,
button.bg-indigo-500 {
    padding: 10px 24px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
}
