/* Dashboard Styles - Premium Fintech Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --dash-navy: #081120;
    --dash-navy-light: #0D2B52;
    --dash-gold: #D4AF37;
    --dash-gold-light: #E8CC6E;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #f0f2f5;
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s;
    background: linear-gradient(180deg, #081120 0%, #0D2B52 100%);
}

.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.sidebar-header .sidebar-logo,
.sidebar-header img {
    max-height: 50px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    image-rendering: auto !important;
}

.sidebar-header h5 {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.sidebar-header h5 .brand-gold {
    color: var(--dash-gold);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--dash-gold);
    font-weight: 600;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

/* Page Content */
#page-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f0f2f5;
}

/* Top Navbar */
.navbar {
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
}

/* Cards */
.card {
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
    transform: translateY(-2px);
}

/* Quick Action Cards */
.quick-action-card {
    transition: all 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.quick-action-card .bg-opacity-10 {
    transition: all 0.3s ease;
}

.quick-action-card:hover .bg-opacity-10 {
    transform: scale(1.1);
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table td {
    vertical-align: middle;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.4em 0.75em;
    border-radius: 6px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    box-shadow: 0 2px 8px rgba(13, 43, 82, 0.2);
    background: var(--dash-navy-light);
    border-color: var(--dash-navy-light);
}

.btn-primary:hover {
    background: var(--dash-navy);
    border-color: var(--dash-navy);
    box-shadow: 0 4px 12px rgba(13, 43, 82, 0.3);
}

/* Flash Messages */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    #page-content {
        margin-left: 0;
    }
    
    /* Mobile logo sizing for dashboard sidebar */
    .sidebar-header .sidebar-logo,
    .sidebar-header img {
        max-height: 42px !important;
        max-width: 130px !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.4s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-status.active { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-status.suspended { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-status.pending { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-status.completed { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-status.failed { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-status.processing { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-status.approved { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-status.rejected { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-status.frozen { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-status.verified { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-status.new { background: rgba(6,182,212,0.15); color: #22d3ee; }
.badge-status.sent { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-status.reversed { background: rgba(168,85,247,0.15); color: #c084fc; }
.badge-status.cancelled { background: rgba(107,114,128,0.15); color: #9ca3af; }
.badge-status.draft { background: rgba(107,114,128,0.15); color: #9ca3af; }

/* Sidebar sections */
.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 12px;
}

.sidebar-section {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    margin-top: 4px;
}
