:root {
  --primary: #00E599;
  --primary-hover: #00FFAC;
  --primary-rgb: 0, 229, 153;
  --primary-dark: #00B377;
  --accent: #00E599;
  --bg-dark: #060908;
  --card-bg: #0C120F;
  --card-border: #18261F;
}

/* -------------------------------------------------------------
   COMPACT & RESPONSIVE SIDEBAR (FITS 100% WITHOUT ZOOMING OUT)
---------------------------------------------------------------- */
.sidebar {
    width: 235px !important;
    min-width: 235px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 10px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    color: #ffffff !important;
    background: #090e14 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.sidebar-brand {
    padding: 2px 4px 10px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.sidebar-nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    padding-right: 3px !important;
    margin-bottom: 6px !important;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 201, 141, 0.4);
}

.nav-button {
    width: 100% !important;
    min-height: 33px !important;
    height: 33px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #94a3b8 !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: left !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.nav-button:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.nav-button.active {
    color: #00c98d !important;
    background: rgba(0, 201, 141, 0.12) !important;
    border-left: 3px solid #00c98d !important;
    font-weight: 700 !important;
}

.nav-icon {
    width: 16px !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.nav-label {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.sidebar-footer-compact {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.sidebar-engine-pill {
    padding: 5px 8px !important;
    border-radius: 6px !important;
    background: rgba(0, 201, 141, 0.08) !important;
    border: 1px solid rgba(0, 201, 141, 0.2) !important;
    color: #00c98d !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #00c98d;
    box-shadow: 0 0 6px #00c98d;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.sidebar-logout-btn {
    width: 100% !important;
    height: 30px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.sidebar-logout-btn:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* -------------------------------------------------------------
   HUMANIZED ADMIN UX & CRUD ACTION BUTTONS
---------------------------------------------------------------- */
.btn-action-sm {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.btn-action-credits {
    background: rgba(0, 201, 141, 0.15) !important;
    border: 1px solid rgba(0, 201, 141, 0.35) !important;
    color: #00c98d !important;
}
.btn-action-credits:hover {
    background: #00c98d !important;
    color: #000 !important;
}

.btn-action-plan {
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
}
.btn-action-plan:hover {
    background: #38bdf8 !important;
    color: #000 !important;
}

.btn-action-block {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}
.btn-action-block:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

.btn-action-activate {
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: #22c55e !important;
}
.btn-action-activate:hover {
    background: #22c55e !important;
    color: #000 !important;
}

/* MODAL MODERN STYLING */
.modal-overlay-dark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.modal-card-modern {
    background: #0f1620;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    color: #fff;
    box-sizing: border-box;
    animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.btn-quick-credit {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-quick-credit:hover {
    background: rgba(0, 201, 141, 0.15);
    border-color: rgba(0, 201, 141, 0.4);
    color: #00c98d;
}

