:root {
    --primary-color: #1a5928;
    --primary-dark: #144520;
    --secondary-color: #2e8b57;
    --bg-light: #f4f7f6;
    --text-dark: #333;
    --sidebar-width: 260px;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--primary-color);
    position: fixed;
    left: 0;
    top: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    color: white;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    padding: 0 15px;
    margin-bottom: 5px;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    display: flex;
    align-items: center;
    padding: 12px 15px !important;
    border-radius: 10px;
    transition: all 0.2s;
}

.nav-link i {
    width: 25px;
    margin-right: 10px;
    font-size: 1.1rem;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255,255,255,0.15);
    color: white !important;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Header Styling */
.main-wrapper {
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
}

.top-header {
    background: white;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-left, .header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
    gap: 15px;
}

.header-center {
    flex: 2;
    text-align: center;
}

.branding-text {
    color: var(--primary-color);
    letter-spacing: 1px;
}

.balance-chip {
    background: #e8f5e9;
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Responsiveness */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(3px);
}

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

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0,0,0,0.2);
    }
    .main-wrapper {
        margin-left: 0 !important;
    }
    .mobile-toggle {
        display: block !important;
    }
    .top-header {
        padding: 0 15px;
    }
}

.cursor-pointer {
    cursor: pointer;
}

.overflow-hidden {
    overflow: hidden !important;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Service Cards (Matching Screenshot) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.pro-service-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    border: 1px solid #eee;
    transition: all 0.3s;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
}

.pro-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #f0f7f2;
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.fee-badge {
    position: absolute;
    right: 25px;
    top: 25px;
    font-weight: 600;
    color: #666;
}

.balance-status {
    margin-top: auto;
    font-size: 0.85rem;
    padding-top: 15px;
}

.status-insufficient { color: #dc3545; }
.status-sufficient { color: #198754; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Global Primary Color Overrides */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

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

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.btn-success {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-success:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.text-success {
    color: var(--primary-color) !important;
}

.border-success {
    border-color: var(--primary-color) !important;
}
