/* DigitalOceans Ghana - Main CSS (Marine Blue Theme) */
:root {
    --primary: #0F3057;
    --secondary: #00587A;
    --accent: #008891;
    --light-blue: #00A8CC;
    /* Backward-compat aliases */
    --ghana-green: #0F3057;
    --ghana-red: #CE1126;
    --ghana-gold: #FCD116;
    --ghana-black: #000000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

nav.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

/* Service Cards */
.service-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 12px;
}
.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 48, 87, 0.15) !important;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent);
    display: block;
}

/* Hero */
.hero-section {
    padding: 80px 0;
}

/* Buttons */
.btn-ghana-green,
.btn-primary-blue {
    background-color: var(--primary);
    color: white;
    border: none;
}
.btn-ghana-green:hover,
.btn-primary-blue:hover {
    background-color: var(--secondary);
    color: white;
}

.btn-ghana-gold {
    background-color: var(--ghana-gold);
    color: #000;
    border: none;
}
.btn-ghana-gold:hover {
    background-color: #e6bb00;
    color: #000;
}

.btn-ghana-red {
    background-color: var(--ghana-red);
    color: white;
    border: none;
}

/* Cards */
.card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 48, 87, 0.1);
}

/* Tables */
.table th {
    font-weight: 600;
}

/* Footer */
.footer a {
    text-decoration: none;
    transition: color 0.2s;
}
.footer a:hover {
    color: var(--light-blue) !important;
}

/* Wallet card */
.wallet-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 16px;
}

/* Status badges */
.status-pending { background-color: var(--ghana-gold); color: #000; }
.status-completed { background-color: var(--accent); color: #fff; }
.status-failed { background-color: var(--ghana-red); color: #fff; }

/* ─── Mobile / Responsive ─── */

/* Nav tabs — scrollable on small screens */
.nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs .nav-item { flex-shrink: 0; }

@media (max-width: 767.98px) {
    /* Landing hero */
    .landing-hero { padding: 60px 0 40px !important; }

    /* Hero stats — remove right border when they wrap */
    .hero-stat { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.12); }
    .hero-stat:last-child { border-bottom: none; }

    /* Admin content */
    .admin-content { padding: 1rem !important; }

    /* Topbar padding */
    .admin-topbar,
    .customer-topbar,
    .agent-topbar { padding: .5rem .75rem; }
}

@media (max-width: 575.98px) {
    /* General hero heading */
    .hero-section h1 { font-size: 1.75rem; }
    .service-icon { font-size: 2rem; }

    /* Landing service card text */
    .service-card-landing h5 { font-size: .95rem; }
    .service-card-landing .text-muted.small { font-size: .75rem; }

    /* Container horizontal padding */
    .admin-content { padding: .75rem !important; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* Section label & headings */
.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .5rem;
}
.section-heading  { color: var(--primary); }
.bg-off-white     { background: #f4f8fb; }
.hero-subtitle    { color: rgba(255,255,255,.8); }
.hero-subtitle-dim { color: rgba(255,255,255,.6); }

/* Icon colour/background utilities used on landing & about pages */
.icon-color-accent   { color: var(--accent); }
.icon-color-primary  { color: var(--primary); }
.icon-color-gold     { color: #b8860b; }
.icon-color-red      { color: #c0392b; }
.icon-color-green    { color: #27ae60; }
.icon-color-purple   { color: #8e44ad; }
.icon-bg-accent      { background: rgba(0,136,145,.12); }
.icon-bg-primary     { background: rgba(15,48,87,.1); }
.icon-bg-gold        { background: rgba(252,209,22,.15); }
.icon-bg-red         { background: rgba(192,57,43,.1); }
.icon-bg-green       { background: rgba(39,174,96,.12); }
.icon-bg-purple      { background: rgba(142,68,173,.1); }
.bg-primary-custom   { background: var(--primary); }
.dot-xs              { font-size: .6rem; }

.store-link-section {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 0.375rem;
}

/* ─── Persistent site sidebar (customer / agent) ─── */
.site-wrapper {
    display: flex;
    min-height: calc(100vh - 56px); /* subtract navbar height */
    flex: 1;
}

.site-sidebar {
    width: 220px;
    min-width: 220px;
    background: #0F3057;
    color: #cdd3da;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.site-sidebar .sidebar-brand {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
}

.site-sidebar .nav-section {
    padding: .45rem 1rem .15rem;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7e9ab8;
    margin-top: .4rem;
}

.site-sidebar a.sidebar-link {
    color: #cdd3da;
    padding: .45rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    font-size: .875rem;
    transition: background .15s;
    border: none;
}

.site-sidebar a.sidebar-link:hover,
.site-sidebar a.sidebar-link.active {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.site-sidebar a.sidebar-link i {
    font-size: .9rem;
    width: 1rem;
    text-align: center;
}

.site-sidebar .sub-links a.sidebar-link {
    font-size: .83rem;
    padding: .38rem 1.25rem .38rem 2rem;
}

.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: #f4f6f9;
    min-width: 0;
}

.site-topbar {
    background: #fff;
    border-bottom: 1px solid #e0e4ea;
    padding: .5rem 1rem;
}

/* Overlay for mobile sidebar */
.site-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1040;
}

.site-overlay.show { display: block; }

@media (max-width: 767.98px) {
    .site-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
    }
    .site-sidebar.show { display: flex; }
}
