:root {
    --primary: #ff6200; /* Vibrant Orange */
    --primary-rgb: 255, 98, 0;
    --black: #0d0d0d;   /* Pitch black */
    --white: #ffffff;   /* Pure white */
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --border: #e4e4e7;
    --sidebar-bg: var(--black);
    --input-bg: #f8fafc;
    --bg-body: #f4f4f6;
    --card-bg: var(--white);
    --sidebar-border: #27272a;
}

body {
    background-color: var(--bg-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--black);
}

/* Sidebar Styles - Dark Theme */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
    color: var(--white);
}

.sidebar .border-bottom, 
.sidebar .border-top {
    border-color: var(--sidebar-border) !important;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.4);
}

/* Override text-muted inside sidebar to be readable on black */
.sidebar .text-muted {
    color: #a1a1aa !important;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #d4d4d8;
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.nav-link-custom:hover {
    background-color: #27272a;
    color: var(--white);
    transform: translateX(4px);
}

.nav-link-custom.active {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px -1px rgba(var(--primary-rgb), 0.4);
}

/* Header Styles */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.header-profile {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 2px 5px rgba(var(--primary-rgb), 0.3);
}

.icon-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--black);
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: var(--muted);
}

.wallet-badge {
    background-color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Main Content Styles */
.content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Search Input */
.search-wrapper {
    position: relative;
}

.search-wrapper i, .search-wrapper .lucide {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    width: 20px;
    height: 20px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background-color: var(--input-bg);
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    background-color: var(--white);
}

/* Service / Data Cards */
.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.15);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

/* Stat Cards */
.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.stat-card.hover-border-primary:hover {
    border-color: var(--primary);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper i, .stat-icon-wrapper .lucide {
    width: 24px;
    height: 24px;
}

/* UI Elements */
.badge-soft {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-primary-custom {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.btn-primary-custom:hover {
    background-color: #e65800;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.4);
}

.text-primary-custom {
    color: var(--primary);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

/* Table & Lists */
.card-wrapper {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.list-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.list-item:hover {
    background-color: rgba(var(--primary-rgb), 0.03);
}

.list-item:last-child {
    border-bottom: none;
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        z-index: 1040;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    }
    .sidebar.show {
        left: 0;
    }
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1030;
        display: none;
    }
    .sidebar-backdrop.show {
        display: block;
    }
}
