/* Global Design System - Aadhaar Pro */

@font-face {
    font-family: 'AadhaarHindi';
    src: url('../font/NotoSansDevanagari-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'FontHindi';
    src: url('../font/NotoSansDevanagari-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'AadhaarDigits';
    src: url('../font/font-0052.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AadhaarEnglish';
    src: url('../font/font-0020.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

:root {
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success: #4ade80;
    --error: #f72585;
    --bg-color: #f8fafc;
    --sidebar-bg: #0452c7;
    --sidebar-text: #94a3b8;
    --sidebar-active: #ffffff;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --primary-gradient: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    --pink-gradient: linear-gradient(135deg, #ff4d6d 0%, #ff0050 100%);
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-secondary: #3a0ca3;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-primary-light: rgba(67, 97, 238, 0.1);
    --shadow-primary-medium: rgba(67, 97, 238, 0.3);
    --shadow-primary-dark: rgba(67, 97, 238, 0.4);
    --white: #ffffff;
    --white-transparent: rgba(255, 255, 255, 0.05);
    --black-transparent: rgba(0, 0, 0, 0.5);
    --success-light: rgba(74, 222, 128, 0.1);
    --error-light: rgba(247, 37, 133, 0.1);
}

[data-theme='dark'] {
    --bg-color: #040914;
    --sidebar-bg: #0f172a;
    --card-bg: #0f172a;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --glass-bg: rgba(15, 23, 42, 0.8);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* HOVER EFFECTS */

.hover {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--gradient-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-light);
    transform: translateY(-3px);
}

.hover:hover::before {
    opacity: 1;
}

.btn-hover {
    transition: var(--transition);
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.input-hover,
.input-hover-effect {
    transition: var(--transition);
}

.input-hover:hover,
.input-hover:focus,
.input-hover-effect:hover,
.input-hover-effect:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-primary-light);
}

/* LAYOUT SHELL */

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid var(--white-transparent);
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
}

.logo-text {
    transition: opacity 0.2s ease;
}

.sidebar-collapse-btn {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform 0.3s ease, background 0.2s ease;
    z-index: 10;
}

.sidebar-collapse-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sidebar-menu {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.side-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--sidebar-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.side-btn i {
    min-width: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-text {
    white-space: nowrap;
}

.side-btn:hover {
    background: var(--white-transparent);
    color: var(--white);
    border: 1px solid var(--border-color);
}

.side-btn.active {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-primary-medium);
    border: 1px solid transparent;
}

.side-btn.logout-link {
    margin-top: auto;
    color: var(--error) !important;
}

.main-content {
    flex-grow: 1;
    padding: 0 10px 10px 10px;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    min-width: 0;
}

.top-bar {
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
    padding: 0px 30px;
    margin: 10px 0 0 0;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb .active {
    color: var(--text-color);
    font-weight: 600;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.header-icon-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-light);
    color: var(--white);
}

.wallet-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black-transparent);
    z-index: 950;
    display: none;
}

.content-body {
    padding: 20px 30px 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* SIDEBAR FORM */

.sidebar-form {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-light);
    width: 100%;
    transition: var(--transition);
}

.sidebar-form h2 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

/* BUTTON SYSTEM */

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-color);
    color: var(--text-color);
    border-color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 10px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-icon {
    padding: 12px;
    width: 48px;
    height: 48px;
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-premium {
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(67, 97, 238, 0.4);
}

/* FORM ELEMENTS */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

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

.form-row.form-row-single {
    flex-direction: column;
    gap: 0;
}

.form-row .form-group {
    flex: 1;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', 'FontHindi', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-primary-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px var(--shadow-primary-light);
    transform: translateY(-1px);
}

.form-select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    min-width: 140px;
    cursor: pointer;
    transition: var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-primary-light);
}

.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px var(--shadow-primary-light);
}

.input-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', 'FontHindi', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.input-control:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-primary-light);
}

.input-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px var(--shadow-primary-light);
    transform: translateY(-1px);
}

/* TAB SYSTEM */

.tabs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tab {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.tab.active {
    border: none;
    background: var(--primary-gradient);
    color: white;
}

.tab:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.service-tabs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.service-tab {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.service-tab.active {
    border: none;
    background: var(--primary-gradient);
    color: white;
}

.service-tab:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* CARD SYSTEM */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.card-stat {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--gradient-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-stat:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-light);
    transform: translateY(-3px);
}

.card-stat:hover::before {
    opacity: 1;
}

.card-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.card-stat-info h3 {
    font-size: 1.6rem;
    margin: 0 0 6px 0;
    color: var(--text-color);
    font-weight: 700;
}

.card-stat-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.card-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: var(--card-bg);
    padding: 25px 35px;
    border-radius: 20px;
    margin: 0 auto 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.balance-card {
    text-align: right;
}

.balance-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.balance-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-service {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: var(--transition);
}

.card-service:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-light);
    transform: translateY(-3px);
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--gradient-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-light);
    transform: translateY(-3px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 1.6rem;
    margin: 0 0 6px 0;
    color: var(--text-color);
    font-weight: 700;
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.wallet-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: var(--card-bg);
    padding: 25px 35px;
    border-radius: 20px;
    margin: 0 auto 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-light);
    transform: translateY(-3px);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 16px;
    font-size: 30px;
}

.service-icon.primary-color {
    color: var(--primary-color);
}

.service-icon.accent-pink {
    color: #ff4d6d;
}

.service-icon.accent-cyan {
    color: var(--accent-color);
}

.service-icon.accent-purple {
    color: var(--gradient-secondary);
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.btn-view-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--pink-gradient);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-view-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-primary-medium);
}

/* TABLE SYSTEM */

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table thead {
    background: var(--bg-color);
    border-bottom: 2px solid var(--border-color);
}

.table th {
    padding: 20px 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.table td {
    padding: 18px 25px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.table tr:hover {
    background: rgba(67, 97, 238, 0.02);
}

.table-wrapper {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 25px;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* STATUS PILLS */

.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.status-approved {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.status-resolved {
    background: #dcfce7;
    color: #166534;
}

.status-closed {
    background: #f1f5f9;
    color: #475569;
}

/* BADGES */

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-credit {
    background: rgba(74, 222, 128, 0.1);
    color: #166534;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.badge-debit {
    background: rgba(247, 37, 133, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(247, 37, 133, 0.2);
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--error);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
}

/* MODAL SYSTEM */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal .modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px var(--shadow-medium);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
}

.modal-body {
    line-height: 1.6;
    padding: 10px 0;
}

.modal-footer {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s ease;
    padding: 4px;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

/* STATES */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

.loading-state {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.loading-state i {
    color: var(--primary-color);
    margin-right: 8px;
}

.error-state {
    padding: 40px;
    text-align: center;
    color: var(--error);
}

.success-state {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
}

/* SEARCH & FILTER */

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s ease;
    z-index: 2;
}

.search-box:hover i {
    color: var(--primary-color);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-primary-light);
}

.search-box input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-primary-light);
}

.controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.controls-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* BANNER */

.banner {
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.banner-compact {
    padding: 25px;
    margin-bottom: 30px;
}

.banner-admin {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.2);
    position: relative;
    overflow: hidden;
}

.banner-admin h1 {
    color: white;
    margin: 0 0 8px 0;
}

.banner-admin p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* TOAST */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 10px 30px var(--shadow-medium);
    border-left: 4px solid var(--primary-color);
    font-size: 0.9rem;
    animation: toastSlideIn 0.3s ease;
}

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

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

/* REQUEST/HISTORY ITEMS */

.requests-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    margin-top: 30px;
}

.requests-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.requests-header p {
    color: var(--text-muted);
    margin: 0 0 25px 0;
    font-size: 1rem;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.request-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
}

.request-info {
    flex: 1;
}

.request-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 5px 0;
}

.request-details {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.request-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.amount-plus {
    color: #166534;
    font-weight: 700;
}

.amount-minus {
    color: #b91c1c;
    font-weight: 700;
}

/* FLATPICKR DATE PICKER */

.flatpickr-calendar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-medium);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

.flatpickr-months .flatpickr-month {
    background: var(--primary-gradient);
    color: #fff;
    fill: #fff;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #fff;
    fill: #fff;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #fff;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent;
    color: #fff !important;
    font-weight: 700;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: #ffffff;
    color: #1e293b;
}

.flatpickr-current-month input.cur-year {
    color: #fff !important;
    font-weight: 700;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: #fff;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: #fff;
}

.flatpickr-weekdays {
    background: var(--bg-color);
}

span.flatpickr-weekday {
    color: var(--text-muted);
    background: var(--bg-color);
    font-weight: 600;
}

.flatpickr-innerContainer {
    background: var(--card-bg);
}

.flatpickr-day {
    color: var(--text-color);
    border-radius: 10px;
}

.flatpickr-day:hover {
    background: rgba(67, 97, 238, 0.1);
    border-color: rgba(67, 97, 238, 0.2);
}

.flatpickr-day.today {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.flatpickr-day.today:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: #fff;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--text-muted);
    opacity: 0.5;
}

[data-theme='dark'] .flatpickr-calendar {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme='dark'] .flatpickr-weekdays {
    background: var(--sidebar-bg);
}

[data-theme='dark'] span.flatpickr-weekday {
    color: var(--text-muted);
    background: var(--sidebar-bg);
}

/* UTILITIES */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex-visible {
    display: flex !important;
}

.text-center {
    text-align: center;
}

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

.flex-1 {
    flex: 1;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mt-20,
.margin-top-20 {
    margin-top: 20px;
}

.mt-25,
.margin-top-25 {
    margin-top: 25px;
}

.mt-40,
.margin-top-40 {
    margin-top: 40px;
}

.mb-5,
.margin-bottom-5 {
    margin-bottom: 5px;
}

.mb-20,
.margin-bottom-20 {
    margin-bottom: 20px;
}

.mb-30,
.margin-bottom-30 {
    margin-bottom: 30px;
}

.p-10,
.padding-10 {
    padding: 10px;
}

.p-30,
.padding-30 {
    padding: 30px;
}

.pdf-popup-icon svg.spinner-animation {
    animation: spin 1s linear infinite;
}

.pdf-popup-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.pdf-popup-msg {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ANIMATIONS */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes smoothFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(67, 97, 238, 0);
    }
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: smoothFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-pulse {
    animation: pulse-glow 2s infinite;
}

.animate-slide-up {
    animation: smoothFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .hamburger-menu {
        display: block;
    }

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

@media (max-width: 768px) {
    .top-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 15px;
        gap: 12px;
    }

    .header-left {
        flex: 1 1 100%;
        order: 1;
    }

    .header-right {
        flex: 0 0 auto;
        order: 3;
    }

    .service-tabs,
    .tabs {
        flex: 1 1 100%;
        order: 2;
        justify-content: flex-start;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .wallet-stats,
    .card-balance {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .balance-card {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .top-bar {
        padding: 10px 12px;
    }

    .header-left,
    .header-right,
    .service-tabs,
    .tabs {
        flex: 1 1 100%;
    }

    .service-tabs,
    .tabs {
        flex-direction: column;
        gap: 8px;
    }

    .service-tab,
    .tab {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
    }
}