* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4A90E2;
    --primary-blue-dark: #357ABD;
    --primary-green: #50C878;
    --primary-green-dark: #3da65f;
    --accent-purple: #8b5cf6;
    --accent-purple-dark: #7c3aed;
    --dark-bg: #1a1f36;
    --darker-bg: #0f172a;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --hover-bg: #f8fafc;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --info: #0ea5e9;
    --info-light: #e0f2fe;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.logo {
    padding: 28px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
}

.logo h2 {
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

nav::-webkit-scrollbar {
    width: 6px;
}

nav::-webkit-scrollbar-track {
    background: transparent;
}

nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.nav-item {
    display: block;
    padding: 14px 24px;
    margin: 4px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    background: #f8fafc;
}

.header {
    background: linear-gradient(135deg, var(--card-bg) 0%, #fefefe 100%);
    padding: 24px 32px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
}

.user-info {
    color: #6b7280;
    font-size: 14px;
}

/* Pages */
.page {
    display: none;
    padding: 32px;
}

.page.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.15);
    border-color: var(--primary-blue);
}

.stat-icon {
    font-size: 36px;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.stat-content h3 {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Title */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 2px;
}

/* Table */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid var(--border-color);
}

th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

td {
    padding: 18px 20px;
    border-top: 1px solid #f1f5f9;
    color: var(--text-primary);
    font-size: 14px;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: var(--hover-bg);
    transform: scale(1.002);
}

.loading {
    text-align: center;
    color: #94a3b8;
    padding: 40px !important;
}

/* Status Badge */
.status-badge, .badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-active, .badge-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.status-inactive, .badge-secondary {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.status-pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.status-approved {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.status-rejected {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

/* Buttons */
.btn, .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    margin-right: 6px;
    border-radius: 6px;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error), #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.feature-info p {
    font-size: 12px;
    color: #6b7280;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #3b82f6;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Forms */
.commission-form, .notification-form {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.currency {
    position: absolute;
    right: 12px;
    top: 38px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Filter Bar */
.filter-bar {
    margin-bottom: 24px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.filter-bar select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-bar select:hover {
    border-color: var(--primary-blue);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #111827;
}

.close-modal {
    font-size: 28px;
    font-weight: 300;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #374151;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Badge Styles */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-secondary {
    background-color: #e5e7eb;
    color: #6b7280;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    margin-right: 4px;
}

.btn-danger {
    background: #EF4444;
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form improvements */
.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group small {
    display: block;
    margin-top: 4px;
}

.form-group input[type="color"] {
    height: 40px;
    cursor: pointer;
}

/* KYC Cards Grid */
.kyc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    padding: 20px;
}

.kyc-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.kyc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.kyc-card-header {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kyc-profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.2s;
}

.kyc-profile-img:hover {
    transform: scale(1.1);
    border-color: #3b82f6;
}

.kyc-profile-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.kyc-card-body {
    padding: 20px;
}

.kyc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.kyc-info-row:last-of-type {
    border-bottom: none;
}

.kyc-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.kyc-value {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.kyc-rejection-reason {
    margin-top: 12px;
    padding: 12px;
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    border-radius: 6px;
    font-size: 13px;
    color: #991b1b;
}

.kyc-documents {
    margin-top: 16px;
}

.kyc-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.kyc-doc-item {
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #f9fafb;
}

.kyc-doc-item:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.kyc-doc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kyc-doc-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.kyc-doc-missing {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    border-color: #fecaca;
    cursor: not-allowed;
}

.kyc-doc-missing:hover {
    transform: none;
    border-color: #fecaca;
    box-shadow: none;
}

.kyc-doc-missing span {
    position: static;
    background: transparent;
    color: #991b1b;
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
}

.kyc-card-footer {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
}

.btn-kyc {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-approve {
    background: #10b981;
    color: white;
}

.btn-approve:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-reject {
    background: #ef4444;
    color: white;
}

.btn-reject:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Document Viewer Modal Improvements */
.modal .modal-content img {
    border: 2px solid #e5e7eb;
    background: white;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .sidebar {
        width: 240px;
    }
    
    .kyc-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .header {
        padding: 20px 24px;
    }
    
    .page {
        padding: 24px;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 800px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 70px;
        overflow: visible;
    }
    
    .logo {
        padding: 16px 20px;
    }
    
    .logo h2 {
        font-size: 16px;
    }
    
    nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
        white-space: nowrap;
    }
    
    nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .nav-item {
        display: inline-block;
        padding: 12px 16px;
        margin: 8px 4px;
        font-size: 13px;
    }
    
    .nav-item:hover {
        transform: translateX(0);
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .header {
        padding: 16px 20px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .page {
        padding: 16px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .kyc-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .kyc-card-footer {
        flex-direction: column;
    }
    
    td, th {
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 18px;
    }
    
    .user-info {
        display: none;
    }
    
    .stat-card {
        padding: 16px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Spin animation for loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Pagination Styles */
.btn-pagination {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.btn-pagination:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.btn-pagination:disabled {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.btn-pagination:active:not(:disabled) {
    transform: translateY(0);
}

/* Enhanced Action Buttons */
.btn-action {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-action:hover {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced Filter Bar */
.filter-bar select {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-bar select:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Enhanced Info Boxes */
.info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    animation: slideInFromLeft 0.5s ease;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Table Row Hover */
tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ================= MODAL CENTER ================= */

#payoutModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#payoutModal .modal-content {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

/* ================= PRODUCT DROPDOWN ================= */

#productDropdown {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 99999;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-dropdown-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: 0.2s;
}

.product-dropdown-item:hover {
    background: #f5f5f5;
}

/* ================= SEARCH CONTAINER ================= */

.product-search-wrapper {
    position: relative;
}

/* ================= PAYOUT PRODUCT ROW ================= */

.payout-product-row td {
    background: #fff;
    vertical-align: middle;
}

.payout-product-info strong {
    font-size: 15px;
    color: var(--text-primary);
}

.payout-product-info small {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 4px;
    display: inline-block;
}

/* ================= EXPAND BUTTON ================= */

.expand-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--primary-green)
    );
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(74,144,226,0.25);
}

.expand-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 18px rgba(74,144,226,0.35);
}

.expand-btn.active {
    transform: rotate(45deg);
}

/* ================= EXPAND AREA ================= */

.expand-wrapper {
    padding: 20px;
    background: linear-gradient(
        135deg,
        #f8fafc,
        #ffffff
    );
}

/* ================= INNER PAYOUT TABLE ================= */

.payout-inner-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.payout-inner-table thead {
    background: linear-gradient(
        135deg,
        #eff6ff,
        #ecfeff
    );
}

.payout-inner-table th {
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.payout-inner-table td {
    padding: 16px 18px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
}

.payout-inner-table tbody tr:hover {
    background: #f8fafc;
}

/* ================= ACTION BUTTONS ================= */

.payout-action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-edit-payout,
.btn-delete-payout,
.btn-add-payout {
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.25s ease;
}

/* EDIT */

.btn-edit-payout {
    background: linear-gradient(
        135deg,
        var(--warning),
        #d97706
    );

    color: #fff;
    padding: 8px 14px;
}

.btn-edit-payout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(245,158,11,0.35);
}

/* DELETE */

.btn-delete-payout {
    background: linear-gradient(
        135deg,
        var(--error),
        #dc2626
    );

    color: #fff;
    padding: 8px 14px;
}

.btn-delete-payout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(239,68,68,0.35);
}

/* ADD */

.btn-add-payout {
    margin-top: 18px;

    background: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--primary-green)
    );

    color: #fff;

    padding: 12px 18px;

    box-shadow: 0 4px 12px rgba(74,144,226,0.25);
}

.btn-add-payout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(74,144,226,0.35);
}

/* ================= EMPTY ROW ================= */

.payout-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px !important;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

    .payout-inner-table {
        min-width: 650px;
    }

    .expand-wrapper {
        overflow-x: auto;
    }
}

.wallet-stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-bottom:20px;
}

.wallet-card .stat-value{
    color:#10b981;
    font-weight:700;
}

.value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.value-row .stat-value {
    margin: 0;
    font-weight: 700;
}

.remark-text {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    text-align: right;
}

.remark-text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.status-badge {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
}

@media(max-width:768px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

}

.clickable-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.btn-filter {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.btn-filter {
    transition: all 0.25s ease-in-out;
}

.btn-filter:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.btn-filter.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green)) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(74,144,226,0.25);
}

/* ================= BANK REJECT MODAL ================= */

#bankRejectModal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
}

#bankRejectModal .modal-content {
    width: 95%;
    max-width: 500px;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: bankModalPop .25s ease;
}

@keyframes bankModalPop {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#bankRejectModal h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #111827;
    text-align: center;
}

#bankRejectionReason {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    resize: vertical;
    font-size: 14px;
    transition: all .25s ease;
}

#bankRejectionReason:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,.12);
}

.bank-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.bank-btn-cancel {
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

.bank-btn-cancel:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

.bank-btn-reject {
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg,#ef4444,#dc2626);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 6px 16px rgba(239,68,68,.25);
}

.bank-btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(239,68,68,.35);
}