/* public/css/style.css */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Auth Styles */
.auth-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    transition: var(--transition);
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.auth-header {
    background: var(--primary);
    color: white;
    padding: 24px;
    text-align: center;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
}

.auth-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.auth-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--gray-50);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    background: white;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-icon {
    font-size: 20px;
}

/* Dashboard Styles */
.dashboard-container {
    width: 100vw;
    background: transparent;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: width var(--transition-speed);
    flex-shrink: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.logo-container {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo i {
    font-size: 20px;
    color: #fbbf24;
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
}

.nav-item {
    margin: 2px 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    font-size: 0.85rem;
    transition: opacity var(--transition-speed);
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 10px 6px;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Sidebar Search */
.sidebar-search {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed .sidebar-search {
    padding: 16px 8px;
}

.sidebar.collapsed .search-input {
    padding: 10px 32px 10px 8px;
    font-size: 12px;
}

.sidebar.collapsed .search-btn {
    right: 4px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px 30px;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed);
    min-height: 100vh;
    background-color: #f8fafc;
    width: calc(100vw - var(--sidebar-width));
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100vw - var(--sidebar-collapsed-width));
}

.dashboard-header {
    background: white;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.header-title h2 {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1.5rem;
}

.header-title p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 4px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.btn-logout {
    padding: 8px 16px;
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    background: var(--gray-100);
    color: var(--danger);
}

.dashboard-content {
    padding: 30px;
    background: var(--gray-100);
    flex-grow: 1;
    overflow-y: auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

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

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

.stat-card.warning {
    border-left-color: var(--warning);
}

.stat-card.danger {
    border-left-color: var(--danger);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-title {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card.success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-card.warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-card.danger .stat-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.change-positive {
    color: var(--success);
}

.change-negative {
    color: var(--danger);
}

/* Content Cards */
.content-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    transition: var(--transition);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
}

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

.btn-success:hover {
    background: #059669;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-200);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: var(--gray-50);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-inactive {
    background: #f3f4f6;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
    }
    
    .sidebar-header h1, .nav-item span {
        display: block;
    }
    
    .nav-item {
        justify-content: flex-start;
        padding: 12px 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        margin: 10px;
        min-height: calc(100vh - 20px);
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 0;
        height: auto;
        position: relative;
    }
    
    .sidebar-header, .sidebar-footer {
        display: none;
    }
    
    .sidebar-nav {
        display: flex;
        padding: 10px 0;
        width: 100%;
        overflow-x: auto;
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex-direction: column;
        padding: 10px 5px;
        font-size: 0.75rem;
        border-left: none;
        border-bottom: 4px solid transparent;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .nav-item:hover, .nav-item.active {
        border-left: none;
        border-bottom: 4px solid var(--primary);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .user-menu {
        width: 100%;
        justify-content: space-between;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        max-width: 100%;
    }
    
    .user-info {
        display: none;
    }
    
    .card-actions {
        flex-wrap: wrap;
    }
}

/* Standardized Component Classes */
.container-fluid {
    width: 100%;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

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

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

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

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

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

/* Standardized Card Classes */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 16px 20px;
    border-radius: 0 0 var(--radius) var(--radius);
}

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

/* Standardized Stat Card Classes */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    text-align: center;
}

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

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

.stat-card.warning {
    border-left-color: var(--warning);
}

.stat-card.danger {
    border-left-color: var(--danger);
}

.stat-card h5 {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-card h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

/* Standardized Form Classes */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--gray-50);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    background: white;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--gray-50);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    background: white;
}

/* Standardized Button Classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
}

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

.btn-success:hover {
    background: #059669;
}

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

.btn-danger:hover {
    background: #dc2626;
}

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

.btn-warning:hover {
    background: #d97706;
}

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

.btn-info:hover {
    background: #2563eb;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Standardized Badge Classes */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
}

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

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

.bg-warning {
    background-color: var(--warning);
    color: white;
}

.bg-info {
    background-color: var(--info);
    color: white;
}

.bg-secondary {
    background-color: var(--gray-500);
    color: white;
}

/* Standardized Table Classes */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-200);
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.table-hover tbody tr:hover {
    background: var(--gray-50);
}

/* Standardized Chart Classes */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Wallet Dashboard Styles */
.wallet-dashboard {
    padding: 0;
}

.wallet-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.wallet-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.wallet-subtitle {
    opacity: 0.9;
    margin: 5px 0 0 0;
}

.wallet-actions {
    display: flex;
    gap: 10px;
}

.balance-card {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border: none;
}

.balance-card .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.balance-card .stat-value {
    color: white;
    font-size: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--gray-100);
    color: var(--primary);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.stat-change {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.stat-change.positive {
    color: var(--success);
}

.quick-action {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.quick-action:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
}

.action-content h6 {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: var(--gray-800);
}

.action-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.transaction-list {
    /* Transaction list styling handled by individual items */
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 16px;
}

.transaction-details {
    flex: 1;
}

.transaction-description {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.transaction-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.transaction-date {
    margin-right: 12px;
}

.transaction-amount {
    text-align: right;
}

.amount {
    font-weight: 700;
    font-size: 1.125rem;
    display: block;
    margin-bottom: 4px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.status-pending {
    background: var(--warning);
    color: white;
}

.status-failed {
    background: var(--danger);
    color: white;
}

.status-pending_verification {
    background: var(--info);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

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

.empty-state h6 {
    margin-bottom: 8px;
    color: var(--gray-600);
}

.insight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.insight-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.insight-value {
    font-weight: 600;
    color: var(--gray-800);
}

.health-indicator {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.health-indicator.healthy {
    background: var(--success);
    color: white;
}

.health-indicator.warning {
    background: var(--warning);
    color: white;
}

.health-indicator.low {
    background: var(--danger);
    color: white;
}

.payment-methods {
    display: grid;
    gap: 12px;
}

.payment-method {
    position: relative;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-method label {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.payment-method:hover label {
    border-color: var(--primary-light);
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 24px;
    color: var(--primary);
}

.method-details {
    flex: 1;
}

.method-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.method-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.method-fee {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.quick-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-amounts .btn {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .wallet-header {
        padding: 20px;
        text-align: center;
    }
    
    .wallet-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }
    
    .wallet-actions .btn {
        width: 100%;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-bottom: 12px;
    }
    
    .quick-amounts {
        justify-content: center;
    }
}

/* Transaction History Styles */
.transactions-page {
    padding: 0;
}

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.page-subtitle {
    opacity: 0.9;
    margin: 5px 0 0 0;
}

.page-actions {
    display: flex;
    gap: 10px;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--gray-100);
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 4px;
    font-weight: 500;
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
}

.transaction-type {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-type.credit {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.transaction-type.debit {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.transaction-id {
    font-family: 'Courier New', monospace;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.transaction-date {
    font-size: 0.875rem;
}

.transaction-actions {
    display: flex;
    gap: 4px;
}

.transaction-actions .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.detail-item label {
    font-weight: 600;
    color: var(--gray-600);
    margin: 0;
}

.detail-item span {
    color: var(--gray-800);
}

/* Responsive updates for transaction history */
@media (max-width: 768px) {
    .page-header {
        padding: 20px;
        text-align: center;
    }
    
    .page-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }
    
    .page-actions .btn {
        width: 100%;
    }
    
    .summary-card {
        flex-direction: column;
        text-align: center;
    }
    
    .summary-icon {
        margin-bottom: 12px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .transaction-actions {
        flex-direction: column;
    }
}

/* Call Management Styles */
.calls-dashboard {
    padding: 0;
}

.calls-list {
    /* Calls list styling handled by individual items */
}

.call-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.call-item:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.call-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 16px;
}

.call-details {
    flex: 1;
}

.call-number {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.call-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.call-package {
    margin-right: 12px;
}

.call-status {
    text-align: right;
    margin-right: 16px;
}

.call-cost {
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 4px;
}

.call-actions {
    display: flex;
    gap: 4px;
}

.call-actions .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.package-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.package-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.package-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0.1) 100%);
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.package-header h6 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 8px 0;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li:before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    margin-right: 8px;
}

/* Responsive updates for call management */
@media (max-width: 768px) {
    .call-item {
        flex-direction: column;
        text-align: center;
    }
    
    .call-icon {
        margin-bottom: 12px;
        margin-right: 0;
    }
    
    .call-status {
        text-align: center;
        margin-right: 0;
        margin: 12px 0;
    }
    
    .call-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .package-card {
        margin-bottom: 20px;
    }
}

/* Profile Page Styles */
.profile-page {
    padding: 0;
}

.profile-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.avatar-upload {
    position: relative;
    display: inline-block;
}

.avatar-preview {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.avatar-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.file-upload-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    width: 100%;
}

.file-upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.file-upload-label i {
    font-size: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.info-item strong {
    color: var(--gray-700);
    font-weight: 600;
}

.info-item .float-end {
    color: var(--gray-600);
    font-weight: 500;
}

/* Enhanced form styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* Button enhancements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Responsive updates for profile */
@media (max-width: 768px) {
    .profile-card {
        margin-bottom: 20px;
    }
    
    .avatar-preview {
        width: 100px;
        height: 100px;
    }
    
    .avatar-placeholder {
        font-size: 40px;
    }
    
    .file-upload-label {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Call Create Page Styles */
.call-create-page {
    padding: 0;
}

.package-selection {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.package-option {
    position: relative;
}

.package-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.package-option label {
    cursor: pointer;
    display: block;
}

.package-option input[type="radio"]:checked + label .package-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    transform: scale(1.02);
}

.package-option:hover label .package-card {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.package-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.package-header h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.package-duration {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    font-weight: 500;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 6px 0;
    color: var(--gray-600);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--gray-100);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li:before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    margin-right: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-800);
    border-top: 2px solid var(--gray-300);
    margin-top: 12px;
    padding-top: 16px;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: var(--gray-800);
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.tip-item i {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tip-item div {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.tip-item strong {
    color: var(--gray-800);
    font-weight: 600;
}

/* Responsive updates for call create */
@media (max-width: 768px) {
    .package-selection {
        grid-template-columns: 1fr;
    }
    
    .package-card {
        padding: 16px;
    }
    
    .package-header h6 {
        font-size: 1rem;
    }
    
    .package-price {
        font-size: 1.3rem;
    }
}

/* Search Page Styles */
.search-page {
    padding: 0;
}

.search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-results-header h5 {
    margin: 0;
    color: var(--gray-800);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.result-content {
    flex: 1;
}

.result-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-title a {
    color: var(--gray-800);
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: var(--primary);
}

.result-description {
    margin: 0 0 8px 0;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.4;
}

.result-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.result-actions {
    margin-left: 16px;
}

/* Responsive search */
@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .result-actions {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}