:root {
    --deep-navy: #0B1E36;
    --teal: #00B4D8;
    --teal-dark: #0096B8;
    --teal-glow: rgba(0, 180, 216, 0.15);
    --teal-glow-strong: rgba(0, 180, 216, 0.25);
    --success: #10B981;
    --success-dark: #0E9F6E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --danger-dark: #DC2626;
    --gray-bg: #F8FAFE;
    --gray-border: #E2EDF2;
    --gray-border-dark: #CBD5E1;
    --text-dark: #1F2A44;
    --text-muted: #5A6E8A;
    --text-light: #94A3B8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 16px;
    --radius-xs: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: linear-gradient(135deg, #F5F7FC 0%, #EEF2F7 100%);
    color: var(--text-dark);
    min-height: 100vh;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: var(--deep-navy);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--teal);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background: rgba(0, 180, 216, 0.2);
    color: white;
}

.nav-link.active {
    background: var(--teal);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

/* ==================== MAIN CONTAINER ==================== */
.main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.container {
    width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-border);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

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

.hero-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-card h1 {
    font-size: 1.8rem;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.hero-card h2 {
    font-size: 1.5rem;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.hero-card p {
    color: var(--text-muted);
}

.hero-badge-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hero-badge {
    background: var(--teal-glow);
    color: var(--teal-dark);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ==================== GRID LAYOUT ==================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 1.8rem;
}

@media (max-width: 880px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==================== PANELS / CARDS ==================== */
.panel {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-border);
    margin-bottom: 1.8rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.panel:hover {
    box-shadow: var(--shadow-lg);
}

.panel-header {
    background: var(--gray-bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-border);
    font-weight: 700;
    font-size: 1rem;
    color: var(--deep-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-body {
    padding: 1.5rem;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-row {
    display: flex;
    gap: 12px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }

/* ==================== BUSINESS CARD ==================== */
.business-card {
    background: linear-gradient(135deg, var(--deep-navy) 0%, #1A3A5C 100%);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: white;
}

.business-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.business-email {
    font-size: 0.8rem;
    opacity: 0.8;
    word-break: break-all;
}

.business-bank {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--deep-navy);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #1A3A5C;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--teal);
    color: var(--teal);
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--teal);
    color: white;
}

/* ==================== INFO CARDS ==================== */
.info-card {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-border);
}

.info-card:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 1.8rem;
}

.info-content h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--deep-navy);
}

.info-content p {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==================== BADGES ==================== */
.badge-paystack {
    background: var(--teal-glow);
    color: var(--teal-dark);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-completed, .status-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* ==================== DASHBOARD STATS ==================== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-large {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-border);
    transition: transform 0.2s;
}

.stat-card-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--deep-navy);
    margin: 0.5rem 0;
}

.stat-trend {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up { color: var(--success); }

/* ==================== CHARTS ==================== */
.chart-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-border);
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.date-filter select,
.date-filter input {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--gray-border);
    font-size: 0.8rem;
    background: white;
}

/* ==================== TRANSACTIONS TABLE ==================== */
.transactions-table {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-border);
}

.table-header,
.transaction-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr 0.8fr;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-border);
    align-items: center;
}

.table-header {
    background: var(--gray-bg);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.transaction-row {
    font-size: 0.85rem;
    transition: background 0.2s;
}

.transaction-row:hover {
    background: var(--teal-glow);
}

/* ==================== MODALS ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.3rem;
    color: var(--deep-navy);
}

.close {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

/* ==================== PROGRESS BAR ==================== */
.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--gray-border);
    border-radius: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--teal);
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--deep-navy);
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-content p {
    font-size: 0.7rem;
    opacity: 0.7;
    margin: 4px 0;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--deep-navy);
    color: white;
    padding: 12px 20px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--teal);
    animation: slideIn 0.3s ease;
}

.toast.error {
    border-left-color: var(--danger);
    background: #2D1A1A;
}

.toast.success {
    border-left-color: var(--success);
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== LOADING STATES ==================== */
.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-border);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1000px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        display: none;
    }
    
    .transaction-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* ==================== CHECKBOX STYLES ==================== */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--teal);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal-dark);
}
/* ==================== BANNER STYLES ==================== */
.announcement-banner {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    position: relative;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-icon {
    font-size: 1.2rem;
}

.banner-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.banner-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.banner-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1F2A44;
    padding: 10px 20px;
    text-align: center;
    font-weight: 500;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.promo-link {
    color: #1F2A44;
    text-decoration: underline;
    font-weight: 700;
}

.promo-link:hover {
    text-decoration: none;
}

/* Notification Badge */
.notification-badge {
    position: relative;
}

.notification-badge .badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Real-time indicator */
.realtime-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--teal-glow);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 999;
}

.realtime-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
