/**
 * Golden Easy Admin Portal - Modern Luxury Design System
 * Theme: Golden Amber & Obsidian Slate
 * Version: 3.0
 */

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

:root {
    --ge-gold-400: #fbbf24;
    --ge-gold-500: #f59e0b;
    --ge-gold-600: #d97706;
    --ge-gold-700: #b45309;
    --ge-gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --ge-gold-glow: 0 4px 20px rgba(245, 158, 11, 0.35);

    --ge-dark-900: #0b0f19;
    --ge-dark-800: #0f172a;
    --ge-dark-700: #1e293b;
    --ge-slate-500: #64748b;
    --ge-slate-400: #94a3b8;
    --ge-slate-200: #e2e8f0;
    --ge-slate-100: #f1f5f9;
    --ge-slate-50: #f8fafc;

    --ge-font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ge-font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --vz-font-sans-serif: var(--ge-font-primary);
    --vz-body-bg: #f8fafc;
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
body {
    font-family: var(--ge-font-primary) !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .card-title, .modal-title {
    font-family: var(--ge-font-heading) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a !important;
}

/* Custom modern scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   TOPBAR HEADER STYLING
   ========================================================================== */
#page-topbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.25s ease;
}

.navbar-header {
    padding: 0 1.5rem !important;
}

/* Golden Wallet Button */
.LoadWallet {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-family: var(--ge-font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 8px 18px !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35) !important;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.LoadWallet:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5) !important;
    color: #ffffff !important;
}

.LoadWallet:active {
    transform: translateY(0) !important;
}

.header-profile-user {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid var(--ge-gold-500) !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25) !important;
    object-fit: cover;
}

.topbar-user .dropdown-menu {
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.15) !important;
    padding: 0.5rem !important;
    min-width: 220px;
}

.topbar-user .dropdown-item {
    border-radius: 10px !important;
    padding: 0.65rem 1rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    transition: all 0.15s ease !important;
}

.topbar-user .dropdown-item:hover {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #b45309 !important;
    transform: translateX(3px);
}

.topbar-user .dropdown-item i {
    font-size: 1.1rem;
    color: var(--ge-gold-600);
}

/* ==========================================================================
   SIDEBAR (NAVBAR MENU) LUXURY STYLING
   ========================================================================== */
.app-menu.navbar-menu {
    background: #0b0f19 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2) !important;
}

.navbar-brand-box {
    background: #0b0f19 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 0 1.25rem !important;
}

.navbar-menu .navbar-nav .nav-link {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 0.7rem 1.1rem !important;
    border-radius: 12px !important;
    margin: 3px 12px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex;
    align-items: center;
}

.navbar-menu .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    transform: translateX(3px);
}

.navbar-menu .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.28) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15) !important;
}

.navbar-menu .navbar-nav .nav-link i {
    font-size: 1.2rem !important;
    color: var(--ge-gold-400) !important;
    margin-right: 10px;
    transition: transform 0.2s ease;
}

.navbar-menu .navbar-nav .nav-link:hover i {
    transform: scale(1.15);
}

.menu-title {
    color: #475569 !important;
    font-size: 0.685rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 14px 20px 6px !important;
}

.menu-dropdown {
    background: rgba(15, 23, 42, 0.6) !important;
    border-radius: 10px !important;
    margin: 4px 12px !important;
    padding: 4px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.menu-dropdown .nav-link {
    font-size: 0.825rem !important;
    padding: 0.5rem 1rem !important;
    margin: 2px 8px !important;
    color: #94a3b8 !important;
}

.menu-dropdown .nav-link:hover {
    color: var(--ge-gold-400) !important;
    background: rgba(245, 158, 11, 0.08) !important;
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05) !important;
    margin-bottom: 1.5rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card:hover {
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08) !important;
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
    padding: 1.1rem 1.4rem !important;
}

.card-header .card-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
}

.card-body {
    padding: 1.4rem !important;
}

/* ==========================================================================
   TABLES & DATATABLES PERFECTION
   ========================================================================== */
.table-responsive {
    border-radius: 14px;
    overflow: hidden;
}

.table {
    margin-bottom: 0 !important;
    vertical-align: middle !important;
    border-color: #f1f5f9 !important;
}

.table thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-family: var(--ge-font-primary) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 13px 16px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    white-space: nowrap;
}

.table tbody td {
    padding: 13px 16px !important;
    font-size: 0.875rem !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}

.table tbody tr {
    transition: background-color 0.15s ease !important;
}

.table tbody tr:hover td {
    background-color: rgba(248, 250, 252, 0.9) !important;
}

.table-bordered {
    border: 1px solid #e2e8f0 !important;
}

/* DataTable Wrapper Styles */
div.dataTables_wrapper div.dataTables_filter input {
    border-radius: 9999px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 6px 16px !important;
    font-size: 0.85rem !important;
    outline: none !important;
    transition: all 0.2s ease;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: var(--ge-gold-500) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

div.dataTables_wrapper div.dataTables_length select {
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 5px 28px 5px 12px !important;
    font-size: 0.85rem !important;
}

/* ==========================================================================
   STATUS BADGES & CHIPS (Sleek Soft-Pill System)
   ========================================================================== */
.badge {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    letter-spacing: 0.02em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Success */
.badge.text-bg-success, .badge.bg-success, .badge-success-subtle, .bg-success-subtle {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

/* Warning */
.badge.text-bg-warning, .badge.bg-warning, .badge-warning-subtle, .bg-warning-subtle {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

/* Danger / Failed */
.badge.text-bg-danger, .badge.bg-danger, .badge-danger-subtle, .bg-danger-subtle {
    background: rgba(244, 63, 94, 0.12) !important;
    color: #e11d48 !important;
    border: 1px solid rgba(244, 63, 94, 0.25) !important;
}

/* Primary / Processing */
.badge.text-bg-primary, .badge.bg-primary, .badge-primary-subtle, .bg-primary-subtle {
    background: rgba(79, 70, 229, 0.12) !important;
    color: #4f46e5 !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
}

/* Info */
.badge.text-bg-info, .badge.bg-info, .badge-info-subtle, .bg-info-subtle {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #0284c7 !important;
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
}

/* Secondary */
.badge.text-bg-secondary, .badge.bg-secondary, .badge-secondary-subtle, .bg-secondary-subtle {
    background: rgba(100, 116, 139, 0.12) !important;
    color: #475569 !important;
    border: 1px solid rgba(100, 116, 139, 0.25) !important;
}

/* Dark */
.badge.text-bg-dark, .badge.bg-dark {
    background: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.2) !important;
}

/* Action Badges inside Tables (Edit / Delete buttons rendered as badges) */
a.badge.editDetails, a.badge.deleteUser, a.badge.text-bg-secondary {
    cursor: pointer !important;
    text-decoration: none !important;
    padding: 5px 12px !important;
    font-size: 0.785rem !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

a.badge.editDetails:hover {
    background: rgba(79, 70, 229, 0.2) !important;
    color: #4338ca !important;
    border-color: rgba(79, 70, 229, 0.4) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2) !important;
}

a.badge.deleteUser:hover {
    background: rgba(244, 63, 94, 0.2) !important;
    color: #be123c !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.2) !important;
}

/* ==========================================================================
   BUTTONS & FORM CONTROLS
   ========================================================================== */
.btn {
    font-family: var(--ge-font-primary) !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    padding: 0.55rem 1.15rem !important;
    letter-spacing: -0.01em !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

.btn-secondary {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.btn-sm {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.815rem !important;
    border-radius: 8px !important;
}

.form-control, .form-select {
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 0.6rem 0.95rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ge-gold-500) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
    outline: none !important;
}

.form-label {
    font-size: 0.785rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #64748b !important;
    margin-bottom: 0.35rem !important;
}

/* Pagination Controls */
.pagination {
    gap: 4px;
}

.page-item .page-link {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
    transition: all 0.15s ease !important;
}

.page-item .page-link:hover {
    background-color: #f8fafc !important;
    color: var(--ge-gold-600) !important;
    border-color: var(--ge-gold-400) !important;
}

.page-item.active .page-link, .page-link.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35) !important;
}

/* ==========================================================================
   MODAL WINDOWS
   ========================================================================== */
.modal-content {
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25) !important;
    overflow: hidden !important;
}

.modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.6rem !important;
}

.modal-body {
    padding: 1.6rem !important;
}

.modal-footer {
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 1rem 1.6rem !important;
}

/* ==========================================================================
   METRIC & STAT CARDS (Dashboard Specific Enhancements)
   ========================================================================== */
.metric-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    border-radius: 20px !important;
    padding: 1.35rem !important;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: height 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1) !important;
}

.metric-card.retailer-card::before { background: linear-gradient(90deg, #0284c7, #38bdf8) !important; }
.metric-card.distributor-card::before { background: linear-gradient(90deg, #4f46e5, #818cf8) !important; }
.metric-card.master-card::before { background: linear-gradient(90deg, #7c3aed, #a78bfa) !important; }
.metric-card.api-card::before { background: linear-gradient(90deg, #0d9488, #2dd4bf) !important; }

.metric-card.success-card::before { background: linear-gradient(90deg, #10b981, #059669) !important; }
.metric-card.pending-card::before { background: linear-gradient(90deg, #f59e0b, #d97706) !important; }
.metric-card.failed-card::before { background: linear-gradient(90deg, #f43f5e, #e11d48) !important; }
.metric-card.refund-card::before { background: linear-gradient(90deg, #8b5cf6, #7c3aed) !important; }

.metric-icon-box {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    transition: transform 0.2s ease;
}

.metric-card:hover .metric-icon-box {
    transform: scale(1.08);
}

.metric-amount {
    font-family: var(--ge-font-heading) !important;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.03em !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0.25rem !important;
}

.metric-label {
    font-size: 0.785rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #64748b !important;
}

/* Turnover Hero Card with Golden Ambient Glow */
.turnover-hero-card {
    background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 50%, #312e81 100%) !important;
    border-radius: 22px !important;
    padding: 1.8rem 2.2rem !important;
    color: #ffffff !important;
    box-shadow: 0 12px 35px -5px rgba(67, 56, 202, 0.45) !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.turnover-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.turnover-chip {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    padding: 0.75rem 1.15rem !important;
    transition: transform 0.2s ease;
}

.turnover-chip:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14) !important;
}

/* Quick Filter Preset Pills */
.date-preset-btn {
    border-radius: 9999px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
}

.date-preset-btn:hover, .date-preset-btn.active {
    background: var(--ge-gold-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
}

/* Date Input Styling & Compact Font Size */
input[type="date"].form-control,
input[type="date"].form-control-sm,
input[type="date"] {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.4rem !important;
    letter-spacing: -0.01em !important;
    font-weight: 600 !important;
    color: #334155 !important;
}


/* Pulse animation for live indicators */
@keyframes live-glow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-radar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    animation: live-glow 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 1rem !important;
    }
    .turnover-hero-card {
        padding: 1.25rem !important;
    }
    .metric-amount {
        font-size: 1.35rem !important;
    }
    .date-preset-btn {
        font-size: 0.72rem !important;
        padding: 3px 8px !important;
    }
}
