/* =====================================================================
   EMoney Gateway - custom styles
   ===================================================================== */

/* Nexa font family (loaded via Google Fonts in the layout) */
body {
    font-family: 'Nexa', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

/* =====================================================================
   MODERN USER DASHBOARD - redesigned look
   Dark navy sidebar + clean header + fresh fintech dashboard cards
   ===================================================================== */

/* --- Modern sidebar (user area) --- */
.modern-sidebar {
    background: linear-gradient(180deg, #0d1230 0%, #131a3f 60%, #1b2457 100%);
    color: #cbd5e1;
    width: 280px;
}

.modern-sidebar .side-section-title {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    padding: 1rem 0.5rem 0.4rem;
}

.modern-sidebar .side-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    color: #a7b0cc;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.18s ease;
    border-left: 3px solid transparent;
}

.modern-sidebar .side-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.modern-sidebar .side-link.active {
    background: linear-gradient(90deg, rgba(94, 132, 255, 0.22), rgba(94, 132, 255, 0.05));
    color: #ffffff;
    border-left-color: #6c8cff;
    box-shadow: inset 0 0 0 1px rgba(108, 140, 255, 0.12);
}

.modern-sidebar .side-link .lucide {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.modern-sidebar .side-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    color: #f87171;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.18s ease;
}

.modern-sidebar .side-logout:hover {
    background: rgba(248, 113, 113, 0.1);
}

.modern-sidebar .side-balance-card {
    background: linear-gradient(135deg, rgba(74, 130, 255, 0.28), rgba(56, 189, 248, 0.12));
    border: 1px solid rgba(108, 140, 255, 0.25);
    border-radius: 0.9rem;
    padding: 1rem;
}

.modern-sidebar .side-profile {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.9rem;
    padding: 0.75rem;
}

/* --- Modern header --- */
.modern-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eef1f7;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

/* --- Modern dashboard cards --- */
.dash-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #1e2b5e 0%, #2b3f8f 45%, #4a66c8 100%);
    border-radius: 1.25rem;
    color: #fff;
    padding: 1.75rem;
    box-shadow: 0 18px 40px -18px rgba(30, 43, 94, 0.55);
}

.dash-hero::before,
.dash-hero::after {
    content: '';
    position: absolute;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
}

.dash-hero::before {
    width: 260px;
    height: 260px;
    top: -110px;
    right: -60px;
}

.dash-hero::after {
    width: 180px;
    height: 180px;
    bottom: -90px;
    left: 32%;
}

.dash-hero > * {
    position: relative;
    z-index: 1;
}

.dash-quick {
    background: #ffffff;
    border: 1px solid #e8ecf5;
    border-radius: 1rem;
    padding: 1.15rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.12);
}

.dash-quick:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -14px rgba(30, 58, 138, 0.35);
    border-color: #c7d4ff;
}

.dash-quick .quick-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.dash-quick .quick-icon .lucide {
    width: 1.3rem;
    height: 1.3rem;
}

.dash-stat {
    background: #ffffff;
    border: 1px solid #e8ecf5;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.1);
    transition: all 0.2s ease;
}

.dash-stat:hover {
    box-shadow: 0 14px 30px -14px rgba(15, 23, 42, 0.22);
    transform: translateY(-2px);
}

.dash-stat .stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.dash-stat .stat-icon .lucide {
    width: 1.2rem;
    height: 1.2rem;
}

.dash-panel {
    background: #ffffff;
    border: 1px solid #e8ecf5;
    border-radius: 1.1rem;
    box-shadow: 0 4px 16px -10px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.dash-cols-banner {
    background: linear-gradient(100deg, #24418f 0%, #3b5cc9 100%);
    border-radius: 1.1rem;
    color: #fff;
    padding: 1.35rem 1.6rem;
    box-shadow: 0 14px 34px -18px rgba(36, 65, 143, 0.6);
}

/* Tables in the modern dashboard */
.modern-table thead th {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 700;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #eef1f7;
    text-align: left;
    background: #fafbfe;
}

.modern-table tbody td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #f3f5fa;
    font-size: 0.875rem;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.modern-table tbody tr:hover {
    background: #f8faff;
}

/* Dot pulse for processing */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.dot-pulse {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 9999px;
    background: currentColor;
    animation: pulse-dot 1.2s ease-in-out infinite;
}

/* =====================================================================
   Small additions reused across original pages
   ===================================================================== */
.balance-hidden {
    font-family: monospace;
    letter-spacing: 2px;
}

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

.account-notification {
    animation: slideIn 0.3s ease-out;
}

/* =====================================================================
   Safety-net utilities (not present in the compiled Tailwind layer)
   ===================================================================== */
[x-cloak] { display: none !important; }

.text-\[11px\] { font-size: 0.6875rem; line-height: 1rem; }
.text-\[10px\] { font-size: 0.625rem; line-height: 0.875rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.w-2\.5 { width: 0.625rem; }
.h-2\.5 { height: 0.625rem; }
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.ml-20 { margin-left: 5rem; }
.ml-72 { margin-left: 18rem; }

.text-blue-200 { color: #bfdbfe; }
.text-red-100  { color: #fee2e2; }
.text-gray-100 { color: #f3f4f6; }

.bg-gray-50\/60 { background-color: rgb(249 250 251 / 0.6); }
.bg-blue-500\/40 { background-color: rgb(59 130 246 / 0.4); }
.bg-white\/10 { background-color: rgb(255 255 255 / 0.1); }

.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.accent-blue-600 { accent-color: #2563eb; }
/* ---------------------------------------------------------------------
   Missing core utilities (public layout header / footer / nav)
   --------------------------------------------------------------------- */
.sticky { position: sticky; }

.h-9 { height: 2.25rem; }
.w-9 { width: 2.25rem; }
.h-10 { height: 2.5rem; }

.ring-2 { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width, 0px) var(--tw-ring-offset-color, #ffffff); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width, 0px)) var(--tw-ring-color, rgba(59, 130, 246, 0.5)); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.ring-blue-100 { --tw-ring-color: #dbeafe; }

.bg-gray-900 { background-color: #111827; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.leading-relaxed { line-height: 1.625; }
.border-gray-800 { border-color: #1f2937; }
.min-h-\[70vh\] { min-height: 70vh; }

.hover\:text-white:hover { color: #ffffff; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
}

.object-contain { object-fit: contain; }
.pt-2 { padding-top: 0.5rem; }

@media (min-width: 640px) {
    .sm\:inline-flex { display: inline-flex; }
    .sm\:inline-block { display: inline-block; }
}

.h-12 { height: 3rem; }

/* ---------------------------------------------------------------------
   Missing utilities for public marketing page (hero CTAs, pricing, cards)
   --------------------------------------------------------------------- */
.to-purple-700 { --tw-gradient-to: #7c3aed; }

.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-16 { margin-bottom: 4rem; }

.italic { font-style: italic; }

.border-white { border-color: #ffffff; }
.border-blue-600 { border-color: #2563eb; }

.bg-blue-800 { background-color: #1e40af; }
.bg-blue-900 { background-color: #1e3a8a; }
.bg-indigo-100 { background-color: #e0e7ff; }

.text-indigo-600 { color: #4f46e5; }
.text-yellow-400 { color: #facc15; }

.hover\:bg-blue-800:hover { background-color: #1e40af; }
.hover\:bg-blue-900:hover { background-color: #1e3a8a; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }

@media (min-width: 640px) {
    .sm\:block { display: block; }
}

@media (min-width: 768px) {
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* ---------------------------------------------------------------------
   Compact navbar buttons (btn-primary is sized for full-width forms)
   --------------------------------------------------------------------- */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease-out;
}
.nav-btn-ghost {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}
.nav-btn-ghost:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #9ca3af;
}
.nav-btn-solid {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    box-shadow: 0 4px 15px -5px rgba(46, 106, 217, 0.5);
}
.nav-btn-solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -5px rgba(46, 106, 217, 0.4);
    color: #ffffff;
}

/* ---------------------------------------------------------------------
   Missing text-color utilities (used on dark code blocks / badges)
   --------------------------------------------------------------------- */
.text-amber-500 { color: #f59e0b; }
.text-amber-800 { color: #92400e; }
.text-blue-300  { color: #93c5fd; }
.text-blue-400  { color: #60a5fa; }
.text-green-300 { color: #86efac; }
.text-green-400 { color: #4ade80; }
.text-indigo-200 { color: #c7d2fe; }
.text-pink-600  { color: #db2777; }
.text-purple-800 { color: #6b21a8; }
.text-purple-900 { color: #581c87; }
.text-red-400   { color: #f87171; }
