/* Hide auth overlay after login */
#authOverlay:not(.active) {
display: none;
}

:root {
--primary: #4361ee;
--primary-dark: #3f37c9;
--primary-light: #4cc9f0;
--secondary: #7209b7;
--accent: #f72585;
--success: #00c853;
--warning: #ffab00;
--danger: #ff5252;
--dark: #263238;
--light: #fafafa;
--gray: #78909c;
--light-gray: #eceff1;
--border-radius: 12px;
--shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--card-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
--primary-rgb: 67, 97, 238;

--white: #ffffff;
--light-bg: #f8f9fa;
--card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
/*   --referral: #8e44ad;*/


}

/* Modern Red Theme */
.theme-red {
--primary: #ff5252;
--primary-dark: #d32f2f;
--primary-light: #ff867f;
--primary-rgb: 255, 82, 82;
}

/* Modern Orange Theme */
.theme-orange {
--primary: #ff9800;
--primary-dark: #f57c00;
--primary-light: #ffb74d;
--primary-rgb: 255, 152, 0;
}

/* Modern Ash Theme */
.theme-ash {
--primary: #607d8b;
--primary-dark: #455a64;
--primary-light: #90a4ae;
--primary-rgb: 96, 125, 139;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html, body {
overflow-x: hidden;
max-width: 100%;
}

body {
background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
color: var(--dark);
min-height: 100vh;
padding: 16px;
position: relative;
max-width: 100vw;
overflow-x: hidden;
font-size: 15px;
line-height: 1.6;
}
/* Add loader styles */
.loader-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 300px;
width: 100%;
}

.modern-loader {
width: 50px;
height: 50px;
display: inline-block;
border: 3px solid rgba(255,255,255,0.3);
border-radius: 50%;
border-top-color: var(--primary);
animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
to { transform: rotate(360deg); }
}

.content-placeholder {
display: none;
}
/* Add loader styles Ends  */

.container {
max-width: 1200px;
margin: 0 auto;
width: 100%;
padding: 0 12px;
}

header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 0;
margin-bottom: 24px;
position: relative;
}

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

.logo i {
font-size: 2rem;
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
transition: var(--transition);
}

.logo h1 {
font-size: 1.75rem;
font-weight: 800;
background: linear-gradient(90deg, var(--primary), var(--primary-dark));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
letter-spacing: -0.5px;
transition: var(--transition);
}

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

.user-avatar {
width: 44px;
height: 44px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.1rem;
font-weight: bold;
box-shadow: var(--shadow);
}

.user-details h3 {
font-weight: 600;
margin-bottom: 4px;
font-size: 1rem;
}

.user-details p {
color: var(--gray);
font-size: 0.85rem;
}

.mobile-menu-btn {
display: none;
background: var(--primary);
color: white;
border: none;
width: 40px;
height: 40px;
border-radius: 10px;
font-size: 1.2rem;
cursor: pointer;
box-shadow: var(--shadow);
transition: var(--transition);
}

.mobile-menu-btn:hover {
transform: translateY(-2px);
}

.dashboard {
display: grid;
grid-template-columns: 260px 1fr;
gap: 24px;
}

.sidebar {
background: var(--card-gradient);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
padding: 20px;
height: fit-content;
transition: var(--transition);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Mobile user info in sidebar */
.mobile-user-info {
display: none;
padding: 16px;
border-bottom: 1px solid var(--light-gray);
margin-bottom: 20px;
border-radius: var(--border-radius);
background: rgba(var(--primary-rgb), 0.05);
}

.nav-title {
font-size: 0.85rem;
text-transform: uppercase;
color: var(--gray);
margin-bottom: 16px;
letter-spacing: 1px;
font-weight: 600;
}

.nav-links {
list-style: none;
}

.nav-links li {
margin-bottom: 8px;
}

.nav-links a {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
text-decoration: none;
color: var(--dark);
border-radius: var(--border-radius);
transition: var(--transition);
cursor: pointer;
font-size: 0.95rem;
font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
background: rgba(var(--primary-rgb), 0.1);
color: var(--primary);
transform: translateX(4px);
}

.nav-links a i {
font-size: 1.2rem;
width: 24px;
text-align: center;
}

.content {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}

.card {
overflow-x: auto;
background: var(--card-gradient);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
padding: 24px;
transition: var(--transition);
border: 1px solid rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
}

.card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 1px solid var(--light-gray);
}

.card-header h2 {
font-size: 1.25rem;
color: var(--dark);
font-weight: 700;
}

.card-header i {
font-size: 1.5rem;
color: var(--primary);
}

.wallet-balance {
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
color: white;
border-radius: var(--border-radius);
padding: 20px;
margin-bottom: 20px;
box-shadow: var(--shadow);
}

.wallet-balance h3 {
font-size: 1.1rem;
margin-bottom: 16px;
font-weight: 500;
opacity: 0.9;
}

.balance-amount {
font-size: 2.5rem;
font-weight: 800;
margin-bottom: 20px;
letter-spacing: -1px;
}


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

.btn {
padding: 12px 20px;
border-radius: var(--border-radius);
border: none;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 0.95rem;
box-shadow: var(--shadow);
}
.btn2 {
padding: 10px 14px;
border-radius: var(--border-radius);
border: none;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
font-size: 0.85rem;
width: 100%;
}

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

.btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-outline {
background: transparent;
border: 1px solid var(--primary);
color: var(--primary);
}

.btn-outline:hover {
background: rgba(67, 97, 238, 0.1);
}

.btn-outline2 {
background: transparent;
border: 2px solid white;
color: white;
}

.btn-outline2:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}

.virtual-account {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--light);
border-radius: var(--border-radius);
padding: 20px;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 16px;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.account-details h3 {
font-size: 1.1rem;
margin-bottom: 8px;
color: var(--dark);
}

.account-details p {
font-size: 1.6rem;
font-weight: 700;
letter-spacing: 1px;
color: var(--primary);
word-break: break-all;
overflow-wrap: break-word;
font-family: 'Fira Mono', monospace;
}

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

.btn-icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: var(--light-gray);
color: var(--dark);
border: none;
cursor: pointer;
transition: var(--transition);
font-size: 1rem;
box-shadow: var(--shadow);
}

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

.btn-icon.delete:hover {
background: var(--danger);
}
.action-buttons {
display: flex;
gap: 5px;
}

/* Table container for horizontal scrolling */
.table-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border-radius: var(--border-radius);
}

.history-table {
width: 100%;
border-collapse: collapse;
min-width: 500px;
font-size: 0.9rem;
}

.history-table th, .history-table td {
padding: 12px 16px;
text-align: left;
border-bottom: 1px solid var(--light-gray);
}

.history-table th {
font-weight: 600;
color: var(--gray);
font-size: 0.9rem;
background: rgba(var(--primary-rgb), 0.03);
}

.history-table tbody tr {
transition: var(--transition);
}

.history-table tbody tr:hover {
background: rgba(var(--primary-rgb), 0.05);
transform: translateX(4px);
}

.status {
padding: 6px 12px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 500;
display: inline-block;
}

.status.success {
background: rgba(0, 200, 83, 0.15);
color: var(--success);
}

.status.pending {
background: rgba(255, 171, 0, 0.15);
color: var(--warning);
}

.status.failed {
background: rgba(255, 82, 82, 0.15);
color: var(--danger);
}

.fee-item { 
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 0;
border-bottom: 1px solid var(--light-gray);
font-size: 0.95rem;
}

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

.fee-details h3 {
font-size: 1.05rem;
margin-bottom: 6px;
}

.fee-details p {
color: var(--gray);
font-size: 0.9rem;
}

.fee-amount {
font-weight: 700;
color: var(--dark);
font-size: 1.05rem;
white-space: nowrap;
}

.fee-deadline {
font-size: 0.85rem;
color: var(--danger);
margin-top: 6px;
font-weight: 500;
}

.fee-actions {
display: flex;
align-items: center;
gap: 16px;
}

/* Progress indicator */
.export-progress {
margin-top: 20px;
}

.progress-bar {
height: 6px;
background-color: #f0f0f0;
border-radius: 3px;
overflow: hidden;
margin-bottom: 10px;
}

.progress-fill {
height: 100%;
background-color: #3498db;
width: 0%;
transition: width 0.3s ease;
}

.progress-text {
margin: 0;
font-size: 0.9rem;
color: #666;
text-align: center;
}

@media (max-width: 768px) {
.fee-actions {
width: 100%;
justify-content: space-between;
}

.pay-now-btn {
padding: 8px 16px;
font-size: 0.95rem;
}
}

.pay-now-btn {
background-color: var(--primary);
color: white;
border: none;
padding: 10px 18px;
border-radius: var(--border-radius);
cursor: pointer;
font-weight: 500;
transition: var(--transition);
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
box-shadow: var(--shadow);
}

.pay-now-btn:hover {
background-color: var(--primary-dark);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

.pay-now-btn i {
font-size: 0.95rem;
}

.payout-card {
background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
color: white;
border-radius: var(--border-radius);
padding: 20px;
box-shadow: var(--shadow);
}

.payout-card h3 {
font-size: 1.1rem;
margin-bottom: 16px;
font-weight: 500;
}

.payout-card p {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 20px;
}

.tabs {
display: flex;
gap: 4px;
margin-bottom: 16px;
border-bottom: 1px solid var(--light-gray);
overflow-x: auto;
padding-bottom: 4px;
-webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
display: none;
}

.tab-btn {
padding: 10px 16px;
background: transparent;
border: none;
border-bottom: 3px solid transparent;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
color: var(--gray);
white-space: nowrap;
font-size: 0.9rem;
}

.tab-btn.active {
color: var(--primary);
border-bottom: 3px solid var(--primary);
}

.tab-btn:hover {
color: var(--primary-dark);
}

.chart-container {
height: 220px;
display: flex;
align-items: flex-end;
gap: 10px;
padding: 20px 0;
overflow-x: auto;
}

.chart-bar {
flex: 1;
min-width: 45px;
display: flex;
flex-direction: column;
align-items: center;
}

.bar {
width: 36px;
background: linear-gradient(to top, var(--primary-light), var(--primary));
border-radius: 6px 6px 0 0;
transition: height 0.5s ease;
box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
}

.bar-label {
margin-top: 10px;
font-size: 0.85rem;
color: var(--gray);
font-weight: 500;
}

.footer {
text-align: center;
margin-top: 40px;
padding: 20px;
color: var(--gray);
font-size: 0.9rem;
}

.auth-buttons {
display: flex;
gap: 12px;
}

.auth-container {
max-width: 400px;
margin: 40px auto;
background: var(--card-gradient);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
padding: 32px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.7);
}

.auth-header {
text-align: center;
margin-bottom: 28px;
}

.auth-header h2 {
margin-bottom: 12px;
color: var(--primary);
font-size: 1.75rem;
font-weight: 700;
}

.auth-header p {
color: var(--gray);
font-size: 1rem;
}

.remember-me-container {
margin: 10px 0;
}

.remember-me-label {
display: flex;
align-items: center;
gap: 8px;
font-weight: normal;
cursor: pointer;
}

.remember-me-input {
width: auto;
margin: 0;
}

.reg-type-container {
/*margin-bottom: 20px;
padding: 15px;
border: 1px solid #e0e0e0;
border-radius: 8px;
background-color: #f9f9f9;
*/
}

.reg-type-container > label {
display: block;
margin-bottom: 12px;
font-weight: 600;
color: #2c3e50;
font-size: 1rem;
}

.reg-type-container > div {
display: flex;
gap: 20px;
margin-bottom: 0;
}

.reg-type-container > div > label {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
padding: 8px 12px;
border-radius: 6px;
transition: background-color 0.2s ease;
font-weight: normal;
}

.reg-type-container > div > label:hover {
background-color: #edf2f7;
}

.reg-type-container input[type="radio"] {
margin: 0;
width: auto;
accent-color: #3498db; /* Modern browser support for radio button color */
}

/* Responsive design */
@media (max-width: 480px) {
.reg-type-container > div {
flex-direction: column;
gap: 10px;
}

.reg-type-container > div > label {
width: 100%;
}
}

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

.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
font-size: 0.95rem;
color: var(--dark);
}
.form-group input, 
.form-group select, 
.form-group textarea {
width: 100%;
padding: 10px;
border: 1px solid var(--light-gray);
border-radius: 6px;
font-size: 0.85rem;
transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-group textarea {
min-height: 80px;
resize: vertical;
}
.checkbox-group {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 5px;
}

.checkbox-item {
display: flex;
align-items: center;
gap: 5px;
}

.checkbox-item input {
width: auto;
}

.checkbox-item label {
margin-bottom: 0;
font-weight: normal;
}
.form-columns {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}

.otp-verification {
background: rgba(67, 97, 238, 0.05);
padding: 15px;
border-radius: var(--border-radius);
margin-top: 20px;
border-left: 4px solid var(--primary);
}

.otp-verification h3 {
margin-bottom: 10px;
font-size: 0.9rem;
color: var(--dark);
}
.amount-paid {
color: var(--success);
font-weight: 600;
}

.amount-outstanding {
color: var(--danger);
font-weight: 600;
}

.form-control {
width: 100%;
padding: 12px 16px;
border: 1px solid var(--light-gray);
border-radius: var(--border-radius);
font-size: 1rem;
transition: var(--transition);
background: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
border-color: var(--primary);
outline: none;
box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
transform: translateY(-2px);
}
.form-row {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 12px;
}
.auth-footer {
text-align: center;
margin-top: 20px;
color: var(--gray);
font-size: 0.95rem;
}

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

.auth-footer a:hover {
text-decoration: underline;
}

.main-content {
display: none;
}

.main-content.active {
display: block;
}

/* Content Sections */
.content-section {
display: none;
}

.content-section.active {
display: block;
}

/* Wallet and Virtual Account Container */
.wallet-virtual-container {
display: block;
}

/* ============================================= */
/* MOBILE RESPONSIVENESS (900px and below) */
/* ============================================= */

@media (max-width: 900px) {
.dashboard {
grid-template-columns: 1fr;
}

.content {
grid-template-columns: 1fr;
}

.mobile-menu-btn {
display: block;
}


/* Move mobile menu to right side */
.sidebar {
position: fixed;
top: 0;
right: -100%;
height: 100vh;
z-index: 1000;
overflow-y: auto;
width: 280px;
transition: var(--transition);
}

.sidebar.active {
right: 0;
}

.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
display: none;
}

.overlay.active {
display: block;
}

.auth-buttons {
display: none;
}



/* Move mobile menu to left side */
/*
.sidebar {
position: fixed;
top: 0;
left: -100%;
height: 100vh;
z-index: 1000;
overflow-y: auto;
width: 280px;
transition: var(--transition);
}

.sidebar.active {
left: 0; 
}

.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
display: none;
}

.overlay.active {
display: block;
}
*/


/* Show mobile user info in sidebar */
.mobile-user-info {
display: block;
}

/* Hide user details in header */
.user-details {
display: none;
}

.user-avatar {
width: 40px;
height: 40px;
font-size: 1rem;
}
}

/* Desktop layout for wallet and virtual account */
@media (min-width: 901px) {
.wallet-virtual-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
}
}

/* Small screen adjustments (480px and below) */
@media (max-width: 480px) {
body {
padding: 12px;
font-size: 14px;
}

.container {
padding: 0 8px;
}

header {
padding: 12px 0;
margin-bottom: 20px;
}

.logo i {
font-size: 1.8rem;
}

.logo h1 {
font-size: 1.5rem;
}

.user-avatar {
width: 38px;
height: 38px;
font-size: 1rem;
}

.mobile-menu-btn {
width: 36px;
height: 36px;
font-size: 1.1rem;
}

.dashboard {
gap: 20px;
}

.sidebar {
padding: 20px;
}

.nav-links a {
padding: 10px 14px;
font-size: 0.9rem;
}

.nav-links a i {
font-size: 1.1rem;
}

.content {
gap: 16px;
}

.card {
padding: 20px;
}

.card-header h2 {
font-size: 1.2rem;
}

.card-header i {
font-size: 1.3rem;
}

.wallet-balance {
padding: 16px;
margin-bottom: 20px;
}

.wallet-balance h3 {
font-size: 1rem;
}

.balance-amount {
font-size: 2.2rem;
}

.btn {
padding: 10px 16px;
font-size: 0.9rem;
}

.virtual-account {
padding: 16px;
}

.account-details h3 {
font-size: 1rem;
}

.account-details p {
font-size: 1.4rem;
}

.btn-icon {
width: 36px;
height: 36px;
font-size: 0.9rem;
}

.history-table th, 
.history-table td {
padding: 10px 12px;
font-size: 0.85rem;
}

.history-table th {
font-size: 0.85rem;
}

.fee-item {
padding: 14px 0;
font-size: 0.9rem;
}

.fee-details h3 {
font-size: 1rem;
}

.fee-amount {
font-size: 1rem;
}

.fee-deadline {
font-size: 0.8rem;
}

.payout-card {
padding: 16px;
}

.payout-card p {
font-size: 1.4rem;
}

.tabs {
margin-bottom: 20px;
}

.tab {
padding: 10px 16px;
font-size: 0.95rem;
}

.chart-container {
height: 200px;
}

.bar {
width: 32px;
}

.auth-container {
max-width: 90%;
padding: 24px;
margin: 24px auto;
}

.auth-header h2 {
font-size: 1.5rem;
}

.form-control {
padding: 10px 14px;
font-size: 0.95rem;
}

.footer {
margin-top: 24px;
padding: 16px;
font-size: 0.85rem;
text-align: center;
}

.security-settings {
padding: 16px;
margin-top: 20px;
}

.security-settings h3 {
font-size: 1.1rem;
margin-bottom: 16px;
}

.security-toggle {
flex-direction: column;
margin-bottom: 20px;
}

.security-toggle > div {
min-width: 100%;
margin-bottom: 12px;
}

.toggle-switch {
align-self: flex-end;
}

.session-item, .login-attempt {
flex-direction: column;
align-items: flex-start;
}

.session-info, .login-details {
min-width: 100%;
margin-bottom: 12px;
}

.session-active {
width: 100%;
justify-content: flex-end;
}
}

/* Very small screens (390px and below) */
@media (max-width: 390px) {
body {
font-size: 13.5px;
}

.logo i {
font-size: 1.6rem;
}

.logo h1 {
font-size: 1.3rem;
}

.user-avatar {
width: 36px;
height: 36px;
}

.balance-amount {
font-size: 2rem;
}

.account-details p {
font-size: 1.3rem;
}

.btn {
padding: 9px 14px;
font-size: 0.85rem;
}

.fee-item {
font-size: 0.85rem;
}

.history-table th, 
.history-table td {
padding: 8px 10px;
font-size: 0.8rem;
}

.auth-container {
padding: 20px;
}

.auth-header h2 {
font-size: 1.4rem;
}

.form-control {
padding: 9px 12px;
font-size: 0.9rem;
}

.security-badge {
margin-left: 0;
margin-top: 8px;
}

.security-toggle h4 {
font-size: 0.95rem;
}

.security-toggle p {
font-size: 0.85rem;
}

.session-info h4, .login-details h4 {
font-size: 0.95rem;
}

.session-info p, .login-details p {
font-size: 0.1rem;
}

.toggle-switch {
width: 48px;
height: 24px;
}

.toggle-slider:before {
height: 16px;
width: 16px;
}
.modal-content {
width: 95%;
padding: 15px;
margin: 10% auto;
}

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

.checkbox-group {
flex-direction: column;
gap: 5px;
}
}

/* Notification styles */
.notification-container {
position: fixed;
top: 24px;
right: 24px;
z-index: 10000;
display: flex;
flex-direction: column;
gap: 16px;
max-width: 380px;
}

.notification {
background: var(--card-gradient);
border-radius: var(--border-radius);
padding: 20px;
box-shadow: var(--shadow);
display: flex;
align-items: flex-start;
gap: 16px;
position: relative;
overflow: hidden;
transform: translateX(100%);
opacity: 0;
transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.7);
}

.notification.show {
transform: translateX(0);
opacity: 1;
}

.notification.hide {
transform: translateX(100%);
opacity: 0;
}

.notification-icon {
font-size: 1.6rem;
flex-shrink: 0;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}

.notification.success .notification-icon {
background: rgba(0, 200, 83, 0.15);
color: var(--success);
}

.notification.error .notification-icon {
background: rgba(255, 82, 82, 0.15);
color: var(--danger);
}

.notification.warning .notification-icon {
background: rgba(255, 171, 0, 0.15);
color: var(--warning);
}

.notification.info .notification-icon {
background: rgba(33, 150, 243, 0.15);
color: #2196f3;
}

.notification-content {
flex: 1;
}

.notification-title {
font-weight: 600;
margin-bottom: 6px;
font-size: 1.1rem;
}

.notification-message {
color: var(--gray);
font-size: 0.95rem;
line-height: 1.5;
}

.notification-close {
background: none;
border: none;
color: var(--gray);
cursor: pointer;
font-size: 1.2rem;
transition: var(--transition);
flex-shrink: 0;
}

.notification-close:hover {
color: var(--dark);
}

.notification-loader {
position: absolute;
bottom: 0;
left: 0;
height: 4px;
background: rgba(0, 0, 0, 0.1);
width: 100%;
border-radius: 0 0 var(--border-radius) var(--border-radius);
overflow: hidden;
}

.notification-loader::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
height: 100%;
width: 100%;
border-radius: 0 0 var(--border-radius) var(--border-radius);
transform-origin: left;
animation: loader 3s linear forwards;
}

.notification.success .notification-loader::after {
background: var(--success);
}

.notification.error .notification-loader::after {
background: var(--danger);
}

.notification.warning .notification-loader::after {
background: var(--warning);
}

.notification.info .notification-loader::after {
background: #2196f3;
}

@keyframes loader {
0% {
transform: scaleX(1);
}
100% {
transform: scaleX(0);
}
}

@media (max-width: 600px) {
.notification-container {
left: 16px;
right: 16px;
max-width: none;
}
}

/* Modal styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
backdrop-filter: blur(5px);
}

.modal-content {
background: var(--card-gradient);
margin: 3% auto;
padding: 20px;
border-radius: var(--border-radius);
width: 90%;
max-width: 400px;
position: relative;
box-shadow: var(--shadow);
border: 1px solid rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
/* Added max-height and overflow for scrolling if needed */
max-height: 90vh;
overflow-y: auto;
/* Animation for smooth appearance */
animation: modalFadeIn 0.3s ease-out;
}

.modal-wide {
max-width: 1200px;
}



.close {
position: absolute;
top: 20px;
right: 20px;
font-size: 1.5rem;
cursor: pointer;
color: var(--gray);
transition: var(--transition);
}

.close:hover {
color: var(--dark);
}
.modal-title {
margin-bottom: 16px;
font-size: 1.2rem;
color: var(--dark);
}

.modal-actions {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 20px;
}
.no-data {
text-align: center;
padding: 30px 16px;
color: var(--gray);
}

.no-data i {
font-size: 2.5rem;
margin-bottom: 12px;
color: var(--light-gray);
}

.no-data p {
font-size: 1rem;
}

.mobile-card {
display: flex;
flex-direction: column;
gap: 12px;
padding: 16px;
border: 1px solid var(--light-gray);
border-radius: var(--border-radius);
background: white;
margin-bottom: 12px;
}

.mobile-card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
}

.mobile-card-title {
font-weight: 600;
color: var(--dark);
font-size: 1rem;
}

.mobile-card-details {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 8px;
}

.mobile-card-detail {
display: flex;
justify-content: space-between;
font-size: 0.9rem;
}

.mobile-card-detail label {
color: var(--gray);
font-weight: 500;
}

.mobile-card-detail span {
color: var(--dark);
}

.normal-step-indicator {
display: flex;
justify-content: space-between;
margin-bottom: 28px;
position: relative;
}

.normal-step-indicator::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 2px;
background-color: var(--light-gray);
transform: translateY(-50%);
z-index: 1;
}

.normal-step {
width: 34px;
height: 34px;
border-radius: 50%;
background-color: white;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid var(--light-gray);
position: relative;
z-index: 2;
font-weight: 600;
transition: var(--transition);
}

.normal-step.active {
border-color: var(--primary);
background-color: var(--primary);
color: white;
box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
}

.normal-step.completed {
border-color: var(--success);
background-color: var(--success);
color: white;
}

.otp-container {
display: flex;
gap: 12px;
margin-bottom: 20px;
justify-content: center;
padding: 12px;
border-radius: var(--border-radius);
background-color: var(--light);
}

.otp-input {
width: 50px;
height: 50px;
text-align: center;
font-size: 1.4rem;
border: 2px solid var(--light-gray);
border-radius: var(--border-radius);
transition: var(--transition);
background-color: white;
cursor: text;
font-weight: 600;
}

.otp-input:focus {
border-color: var(--primary);
outline: none;
box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
transform: scale(1.05);
}

.otp-input.filled {
border-color: var(--success);
background-color: rgba(0, 200, 83, 0.1);
}

.resend-otp {
text-align: center;
margin-top: 20px;
padding: 12px;
border-radius: var(--border-radius);
background-color: var(--light);
}

.resend-otp a {
color: var(--primary);
text-decoration: none;
cursor: pointer;
transition: var(--transition);
font-weight: 600;
padding: 6px 12px;
border-radius: var(--border-radius);
background-color: rgba(var(--primary-rgb), 0.1);
}

.resend-otp a:hover {
color: white;
background-color: var(--primary);
text-decoration: none;
}

#resendTimer {
color: var(--gray);
font-size: 0.95rem;
}

.otp-hint {
text-align: center;
color: var(--gray);
font-size: 0.9rem;
margin-top: 8px;
}

/* Add a subtle animation for better UX */
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}

.otp-input:focus {
animation: pulse 0.5s ease;
}

/* Improve focus and selection */
.otp-input::selection {
background: rgba(var(--primary-rgb), 0.3);
}

.otp-input::-moz-selection {
background: rgba(var(--primary-rgb), 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
.otp-container {
gap: 10px;
padding: 10px;
}

.otp-input {
width: 44px;
height: 44px;
font-size: 1.2rem;
}
}

@media (max-width: 480px) {
.otp-container {
gap: 8px;
padding: 8px;
}

.otp-input {
width: 40px;
height: 40px;
font-size: 1.1rem;
}

.resend-otp {
padding: 10px;
}

.resend-otp a {
padding: 5px 10px;
font-size: 0.95rem;
}

#resendTimer {
font-size: 0.9rem;
}

.otp-hint {
font-size: 0.85rem;
}
}

@media (max-width: 360px) {
.otp-container {
gap: 6px;
}

.otp-input {
width: 36px;
height: 36px;
font-size: 1rem;
}
}

/* Extra small devices (very small phones) */
@media (max-width: 320px) {
.otp-container {
gap: 5px;
}

.otp-input {
width: 34px;
height: 34px;
font-size: 0.95rem;
}

.security-settings {
padding: 12px;
}

.btn {
padding: 8px 12px;
font-size: 0.85rem;
}
}

/* Prevent zoom on iOS devices when focusing */
@media (max-width: 768px) {
.otp-input {
font-size: 16px; /* Prevents zoom on iOS */
}
}

/* Touch-friendly styles for mobile */
@media (hover: none) and (pointer: coarse) {
.otp-input {
min-height: 44px; /* Minimum touch target size */
min-width: 44px;
}

.resend-otp a {
min-height: 44px;
display: inline-flex;
align-items: center;
justify-content: center;
}
}

/* Additional security-related styles */
/* Security badge */
.security-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 5px 12px;
background: rgba(0, 200, 83, 0.15);
color: var(--success);
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
margin-left: 12px;
}

/* Security settings sections */
.security-settings {
margin-top: 24px;
padding: 20px;
border-radius: var(--border-radius);
background-color: var(--light);
box-shadow: var(--shadow);
}

.security-settings h3 {
margin-bottom: 20px;
color: var(--primary);
border-bottom: 1px solid var(--light-gray);
padding-bottom: 12px;
font-size: 1.2rem;
display: flex;
align-items: center;
gap: 10px;
}

/* Toggle switches */
.security-toggle {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 24px;
flex-wrap: wrap;
}

.security-toggle > div {
flex: 1;
min-width: 70%;
}

.security-toggle h4 {
margin-bottom: 6px;
font-size: 1rem;
}

.security-toggle p {
color: var(--gray);
font-size: 0.9rem;
line-height: 1.5;
}

.toggle-switch {
position: relative;
display: inline-block;
width: 52px;
height: 26px;
flex-shrink: 0;
}

.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: #ccc;
transition: .4s;
border-radius: 34px;
}

.toggle-slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}

input:checked + .toggle-slider {
background-color: var(--primary);
}

input:checked + .toggle-slider:before {
transform: translateX(26px);
}

/* Session items */
.session-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid var(--light-gray);
flex-wrap: wrap;
}

.session-info {
flex: 1;
min-width: 70%;
}

.session-info h4 {
margin-bottom: 6px;
font-size: 1rem;
}

.session-info p {
color: var(--gray);
font-size: 0.9rem;
line-height: 1.5;
}

.session-active {
display: flex;
align-items: center;
gap: 8px;
color: var(--success);
font-size: 0.9rem;
margin-top: 10px;
width: 100%;
}

/* Login attempts */
.login-attempt {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid var(--light-gray);
flex-wrap: wrap;
}

.login-details {
flex: 1;
min-width: 70%;
}

.login-details h4 {
margin-bottom: 6px;
font-size: 1rem;
}

.login-details p {
color: var(--gray);
font-size: 0.85rem;
line-height: 1.5;
}

.login-status {
font-size: 0.9rem;
font-weight: 600;
}

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

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

/* Settings sections */
.settings-section {
margin-top: 24px;
padding: 20px;
border-radius: var(--border-radius);
background-color: var(--light);
box-shadow: var(--shadow);
}

.settings-section h3 {
margin-bottom: 20px;
color: var(--primary);
border-bottom: 1px solid var(--light-gray);
padding-bottom: 12px;
font-size: 1.2rem;
display: flex;
align-items: center;
gap: 12px;
}

/* Settings groups */
.settings-group {
margin-bottom: 28px;
}

.settings-group:last-child {
margin-bottom: 0;
}

.settings-group h4 {
margin-bottom: 16px;
color: var(--dark);
font-size: 1.1rem;
}

/* Settings items */
.settings-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 0;
border-bottom: 1px solid var(--light-gray);
}

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

.settings-item > div {
flex: 1;
}

.settings-item h5 {
margin-bottom: 6px;
font-size: 1rem;
}

.settings-item p {
color: var(--gray);
font-size: 0.9rem;
line-height: 1.5;
}

/* Color theme options */
/* Theme options styling */
.theme-section {
margin-top: 24px;
padding: 20px;
border-radius: var(--border-radius);
background-color: var(--light);
box-shadow: var(--shadow);
}

.theme-section h3 {
margin-bottom: 20px;
color: var(--primary);
border-bottom: 1px solid var(--light-gray);
padding-bottom: 12px;
font-size: 1.2rem;
display: flex;
align-items: center;
gap: 12px;
}

.theme-options {
display: flex;
gap: 20px;
flex-wrap: wrap;
}

.theme-option {
width: 50px;
height: 50px;
border-radius: var(--border-radius);
cursor: pointer;
border: 3px solid transparent;
transition: var(--transition);
position: relative;
box-shadow: var(--shadow);
}

.theme-option:hover {
transform: scale(1.05);
}

.theme-option.active {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.theme-option.blue {
background: linear-gradient(135deg, #4361ee, #3f37c9);
}

.theme-option.red {
background: linear-gradient(135deg, #ff5252, #d32f2f);
}

.theme-option.orange {
background: linear-gradient(135deg, #ff9800, #f57c00);
}

.theme-option.ash {
background: linear-gradient(135deg, #607d8b, #455a64);
}

.theme-option.green {
background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.theme-option.purple {
background: linear-gradient(135deg, #7209b7, #560bad);
}

.theme-option.active::after {
content: "✔";
color: white;
font-size: 20px;
font-weight: bold;
position: absolute;
top: 8px;
right: 8px;
background: rgba(0,0,0,0.4);
border-radius: 50%;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}

/* Danger button variant */
.btn-danger {
background: var(--danger);
color: white;
}

.btn-danger:hover {
background: #d32f2f;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 82, 82, 0.3);
}

/* Mobile-specific styles for settings */
@media (max-width: 480px) {
.settings-section {
padding: 16px;
margin-top: 20px;
}

.settings-section h3 {
font-size: 1.1rem;
margin-bottom: 16px;
}

.settings-item {
flex-direction: column;
align-items: flex-start;
}

.settings-item > div {
margin-bottom: 12px;
width: 100%;
}

.theme-options {
justify-content: center;
gap: 16px;
}

.theme-option {
width: 60px;
height: 60px;
}

.btn {
width: 100%;
justify-content: center;
}
}

@media (max-width: 390px) {
.settings-item h5 {
font-size: 0.95rem;
}

.settings-item p {
font-size: 0.85rem;
}

.theme-option {
width: 55px;
height: 55px;
}
}

@media (max-width: 320px) {
.settings-section {
padding: 12px;
}

.theme-options {
gap: 12px;
}

.theme-option {
width: 50px;
height: 50px;
}
}

/* 2FA setup section */
.two-factor-setup {
background: white;
border-radius: var(--border-radius);
padding: 24px;
margin-top: 24px;
border: 2px dashed var(--primary);
box-shadow: var(--shadow);
}

.two-factor-setup h3 {
color: var(--primary);
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 12px;
font-size: 1.2rem;
}
@media (max-width: 390px) {
.security-settings {
padding: 15px;
}

.security-settings h3 {
font-size: 1.3rem;
margin-bottom: 20px;
}

.security-toggle {
flex-direction: column;
gap: 15px;
align-items: flex-start;
}

.security-toggle > div {
width: 100%;
}

.security-toggle h4 {
font-size: 1.1rem;
}

.security-toggle p {
font-size: 0.9rem;
}

.setup-options {
flex-direction: column;
gap: 10px;
}

.option-card {
padding: 15px;
flex-direction: row;
align-items: center;
gap: 15px;
}

.option-icon {
font-size: 1.5rem;
min-width: 40px;
}

.option-card h4 {
font-size: 1rem;
margin-bottom: 5px;
}

.option-card p {
font-size: 0.85rem;
}

.qrcode-container,
.manual-code,
.verification-section,
.backup-codes {
padding: 15px;
margin: 15px 0;
}

#qrcode {
width: 180px !important;
height: 180px !important;
margin: 0 auto;
}

.secret-code {
font-size: 0.9rem;
padding: 12px;
word-break: break-all;
}

.otp-container {
gap: 8px;
margin: 15px 0 !important;
}

.otp-input {
width: 40px;
height: 45px;
font-size: 1.2rem;
}

.btn {
width: 100%;
margin: 5px 0;
padding: 12px;
font-size: 0.9rem;
}

.btn-primary {
margin-top: 15px;
}

.codes-container {
grid-template-columns: repeat(2, 1fr);
gap: 10px;
margin: 15px 0;
}

.backup-code {
padding: 10px;
font-size: 0.8rem;
}

.backup-codes > div {
flex-direction: column;
gap: 10px;
}
}

.setup-options {
display: flex;
flex-wrap: wrap;
gap: 24px;
margin-bottom: 24px;
}

.option-card {
flex: 1;
min-width: 280px;
background: var(--light);
border-radius: var(--border-radius);
padding: 24px;
text-align: center;
cursor: pointer;
transition: var(--transition);
border: 2px solid transparent;
box-shadow: var(--shadow);
}

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

.option-card.active {
border-color: var(--primary);
background: rgba(var(--primary-rgb), 0.05);
}

.option-icon {
font-size: 2.8rem;
color: var(--primary);
margin-bottom: 20px;
}

.option-card h4 {
margin-bottom: 12px;
color: var(--dark);
font-size: 1.1rem;
}

.option-card p {
color: var(--gray);
font-size: 0.95rem;
line-height: 1.5;
}

.qrcode-container {
text-align: center;
margin: 24px 0;
padding: 20px;
background: white;
border-radius: var(--border-radius);
display: none;
box-shadow: var(--shadow);
}

#qrcode {
display: inline-block;
padding: 20px;
background: white;
border-radius: var(--border-radius);
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.manual-code {
text-align: center;
margin: 24px 0;
padding: 20px;
background: var(--light);
border-radius: var(--border-radius);
display: none;
box-shadow: var(--shadow);
}

.secret-code {
font-family: 'Fira Mono', monospace;
font-size: 1.3rem;
letter-spacing: 2px;
background: white;
padding: 12px 20px;
border-radius: var(--border-radius);
display: inline-block;
margin: 12px 0;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.verification-section {
margin-top: 24px;
padding: 24px;
background: var(--light);
border-radius: var(--border-radius);
display: none;
box-shadow: var(--shadow);
}

.verification-section h4 {
margin-bottom: 20px;
color: var(--dark);
font-size: 1.1rem;
}

.backup-codes {
margin-top: 24px;
padding: 20px;
background: white;
border-radius: var(--border-radius);
display: none;
box-shadow: var(--shadow);
}

.backup-codes h4 {
margin-bottom: 16px;
color: var(--dark);
font-size: 1.1rem;
}

.codes-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
margin: 20px 0;
}

.backup-code {
font-family: 'Fira Mono', monospace;
padding: 10px;
background: var(--light);
border-radius: var(--border-radius);
text-align: center;
font-size: 0.95rem;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Theme classes for document root */
.theme-blue {
--primary: #4361ee;
--primary-dark: #3f37c9;
--primary-light: #4cc9f0;
--primary-rgb: 67, 97, 238;
}

.theme-red {
--primary: #ff5252;
--primary-dark: #d32f2f;
--primary-light: #ff867f;
--primary-rgb: 255, 82, 82;
}

.theme-ash {
--primary: #607d8b;
--primary-dark: #455a64;
--primary-light: #90a4ae;
--primary-rgb: 96, 125, 139;
}

.theme-green {
--primary: #4caf50;
--primary-dark: #2e7d32;
--primary-light: #80e27e;
--primary-rgb: 76, 175, 80;
}

.theme-purple {
--primary: #7209b7;
--primary-dark: #560bad;
--primary-light: #9d4edd;
--primary-rgb: 114, 9, 183;
}

/* Ensure theme colors are applied to all relevant elements */
.btn-primary {
background: var(--primary);
color: white;
}

.btn-primary:hover {
background: var(--primary-dark);
}

.card-header i {
color: var(--primary);
}

.nav-links a:hover, .nav-links a.active {
background: rgba(var(--primary-rgb), 0.1);
color: var(--primary);
}

.wallet-balance {
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

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

.pay-now-btn:hover {
background-color: var(--primary-dark);
}

.payout-card {
background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
}

.tab.active {
border-bottom: 3px solid var(--primary);
color: var(--primary);
}

.status.success {
background: rgba(0, 200, 83, 0.15);
color: var(--success);
}

/* Animation for theme switching */
body {
transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism effect for modern look */
.glass {
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.18);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Subtle animations for interactive elements */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.fees-table tbody tr {
animation: fadeIn 0.3s ease-out;
}

.fee-details-grid {
display: grid;
grid-template-columns: 1fr;
gap: 15px;
margin-top: 20px;
}

.card, .sidebar, .auth-container {
animation: fadeIn 0.5s ease-out;
}

/* Custom scrollbar for modern browsers */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}

::-webkit-scrollbar-track {
background: rgba(var(--primary-rgb), 0.05);
border-radius: 10px;
}

::-webkit-scrollbar-thumb {
background: rgba(var(--primary-rgb), 0.2);
border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
background: rgba(var(--primary-rgb), 0.4);
}

/* Admin Table*/

.controls {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
}

.search-box {
position: relative;
width: 100%;
}

.search-box input {
width: 100%;
padding: 10px 12px 10px 36px;
border: 1px solid var(--light-gray);
border-radius: var(--border-radius);
font-size: 0.9rem;
transition: var(--transition);
background: white;
}

.search-box input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-box i {
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
color: var(--gray);
font-size: 0.9rem;
}


.rows-per-page {
display: flex;
flex-direction: column;
gap: 5px;
width: 100%;
}

.rows-per-page label {
font-size: 0.75rem;
color: var(--gray);
font-weight: 500;
}

.rows-per-page select {
padding: 8px 10px;
border: 1px solid var(--light-gray);
border-radius: 6px;
font-size: 0.85rem;
width: 100%;
background: white;
}

.rows-per-page {
width: auto;
flex: 1;
}
.filter-row {
display: flex;
flex-direction: column;
padding: 12px;
background: rgba(67, 97, 238, 0.03);
border-bottom: 1px solid var(--light-gray);
gap: 10px;
}

.filter-item {
display: flex;
flex-direction: column;
gap: 5px;
width: 100%;
}

.filter-item label {
font-size: 0.75rem;
color: var(--gray);
font-weight: 500;
}

.filter-item select, .filter-item input {
padding: 8px 10px;
border: 1px solid var(--light-gray);
border-radius: 6px;
font-size: 0.85rem;
width: 100%;
background: white;
}

.mobile-controls {
display: flex;
gap: 8px;
padding: 10px 12px;
border-bottom: 1px solid var(--light-gray);
}

.mobile-controls .btn {
width: auto;
flex: 1;
font-size: 0.8rem;
padding: 8px 10px;
}

.table-container {
overflow-x: auto;
width: 100%;
-webkit-overflow-scrolling: touch;
}

.student-table {
width: 100%;
border-collapse: collapse;
min-width: 700px;
}

.student-table th {
background: rgba(67, 97, 238, 0.05);
padding: 12px 10px;
text-align: left;
font-weight: 600;
color: var(--gray);
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.3px;
border-bottom: 1px solid var(--light-gray);
position: relative;
cursor: pointer;
user-select: none;
white-space: nowrap;
}

.student-table th:hover {
background: rgba(67, 97, 238, 0.08);
}

.student-table th i {
margin-left: 4px;
font-size: 0.7rem;
opacity: 0.6;
}

.student-table td {
padding: 12px 10px;
border-bottom: 1px solid var(--light-gray);
font-size: 0.8rem;
color: var(--dark);
}

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

.student-table tbody tr {
transition: var(--transition);
}

.student-table tbody tr:hover {
background: rgba(67, 97, 238, 0.03);
}

.avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
font-size: 0.8rem;
}

.student-info {
display: flex;
align-items: center;
gap: 8px;
}

.student-details h3 {
font-weight: 600;
margin-bottom: 2px;
font-size: 0.85rem;
}

.student-details p {
color: var(--gray);
font-size: 0.75rem;
}

.program-badge {
padding: 3px 8px;
border-radius: 8px;
font-size: 0.7rem;
font-weight: 500;
background: rgba(67, 97, 238, 0.1);
color: var(--primary);
white-space: nowrap;
}

.table-footer {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 12px;
border-top: 1px solid var(--light-gray);
gap: 12px;
}

.entries-info {
color: var(--gray);
font-size: 0.8rem;
text-align: center;
}
.footer-controls {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
width: 100%;
}
.pagination {
display: flex;
gap: 5px;
align-items: center;
flex-wrap: wrap;
justify-content: center;
}

.pagination-btn {
min-width: 32px;
height: 32px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
background: white;
border: 1px solid var(--light-gray);
color: var(--dark);
cursor: pointer;
transition: var(--transition);
font-size: 0.8rem;
padding: 0 6px;
}

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

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

.pagination-btn i {
font-size: 0.75rem;
}

/* Mobile-specific styles */
@media (min-width: 480px) {
.controls {
flex-direction: row;
align-items: center;
}

.search-box {
width: auto;
flex: 1;
}
.btn {
width: auto;
font-size: 0.8rem;
padding: 8px 12px;
}

.filter-row {
flex-direction: row;
}

.filter-item, .rows-per-page {
width: auto;
flex: 1;
}
.pagination-container {
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.rows-per-page {
flex-direction: row;
align-items: center;
gap: 8px;
width: auto;
}

.rows-per-page label {
margin-bottom: 0;
white-space: nowrap;
}

.rows-per-page select {
width: auto;
min-width: 70px;
}

.mobile-controls {
display: none;
}

.table-footer {
flex-direction: row;
}
.footer-controls {
flex-direction: row;
justify-content: flex-end;
align-items: center;
gap: 16px;
width: auto;
}
.modal-actions {
flex-direction: row;
justify-content: flex-end;
}
}
@media (min-width: 640px) {
body {
padding: 16px;
}

.header {
flex-direction: row;
justify-content: space-between;
align-items: center;
}

.card-header {
flex-direction: row;
justify-content: space-between;
align-items: center;
}

.form-row {
flex-direction: row;
}

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

.action-buttons {
flex-direction: row;
}

.desktop-table {
display: table;
}

.mobile-cards {
display: none;
}
}

@media (min-width: 768px) {
.header {
flex-direction: row;
justify-content: space-between;
align-items: center;
}

.controls {
width: auto;
flex-wrap: nowrap;
}
.filter-row {
flex-wrap: wrap;
}
.rows-per-page {
flex: 0 0 120px;
}
.rows-per-page {
flex: 0 0 120px;
}

.header h1 {
font-size: 1.8rem;
}
.entries-info {
text-align: left;
}

.card-header h2 {
font-size: 1.2rem;
}

.tabs {
gap: 8px;
}

.tab-btn {
padding: 12px 20px;
font-size: 1rem;
}
.form-columns {
grid-template-columns: 1fr 1fr;
}
.fee-details-grid {
grid-template-columns: 1fr 1fr;
}
}
/* Mobile card view for small screens */
@media (max-width: 639px) {
.desktop-table {
display: none;
}

.mobile-cards {
display: block;
}
}

/* Animation for table rows */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}

.student-table tbody tr {
animation: fadeIn 0.3s ease-out;
}

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

.data-table th {
background: rgba(67, 97, 238, 0.05);
padding: 12px 8px;
text-align: left;
font-weight: 600;
color: var(--gray);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.3px;
border-bottom: 1px solid var(--light-gray);
}

.data-table td {
padding: 12px 8px;
border-bottom: 1px solid var(--light-gray);
color: var(--dark);
font-size: 0.8rem;
}

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

.data-table tbody tr {
transition: var(--transition);
}

.data-table tbody tr:hover {
background: rgba(67, 97, 238, 0.03);
}
.status-badge {
padding: 4px 8px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 500;
}

.status-active {
background: rgba(0, 200, 83, 0.1);
color: var(--success);
}

.status-inactive {
background: rgba(255, 82, 82, 0.1);
color: var(--danger);
}

.fees-table {
width: 100%;
border-collapse: collapse;
min-width: 1000px;
}

.fees-table th {
background: rgba(67, 97, 238, 0.05);
padding: 12px 10px;
text-align: left;
font-weight: 600;
color: var(--gray);
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.3px;
border-bottom: 1px solid var(--light-gray);
position: relative;
cursor: pointer;
user-select: none;
white-space: nowrap;
}

.fees-table th:hover {
background: rgba(67, 97, 238, 0.08);
}

.fees-table th i {
margin-left: 4px;
font-size: 0.7rem;
opacity: 0.6;
}

.fees-table td {
padding: 12px 10px;
border-bottom: 1px solid var(--light-gray);
font-size: 0.8rem;
color: var(--dark);
}

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

.fees-table tbody tr {
transition: var(--transition);
}

.fees-table tbody tr:hover {
background: rgba(67, 97, 238, 0.03);
}

.fee-name {
font-weight: 600;
font-size: 0.85rem;
}

.fee-description {
color: var(--gray);
font-size: 0.75rem;
margin-top: 2px;
}

.amount {
font-weight: 600;
color: var(--primary);
}

.status-full {
background: rgba(0, 200, 83, 0.1);
color: var(--success);
}
.status-part {
background: rgba(255, 171, 0, 0.1);
color: var(--warning);
}
.detail-card {
background: rgba(67, 97, 238, 0.03);
padding: 15px;
border-radius: var(--border-radius);
border-left: 4px solid var(--primary);
}

.detail-card h3 {
font-size: 0.9rem;
margin-bottom: 10px;
color: var(--dark);
}

.detail-item {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px solid var(--light-gray);
}

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

.detail-label {
color: var(--gray);
font-size: 0.8rem;
}

.detail-value {
font-weight: 500;
font-size: 0.85rem;
}
.spinner-border {
width: 1rem;
height: 1rem;
margin-right: 8px;
}
@media screen and (max-width: 768px) {
input, select, textarea {
font-size: 16px !important; /* Prevents iOS zoom */
}
}



.password-container {
position: relative;
display: flex;
align-items: center;
}

.toggle-password {
position: absolute;
right: 15px;
background: none;
border: none;
cursor: pointer;
color: #6c757d;
padding: 12px;
border-radius: 50%;
transition: all 0.3s;
z-index: 2;
}

.toggle-password:hover {
background-color: rgba(0, 0, 0, 0.05);
}

.toggle-password:active {
background-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {

.toggle-password {
padding: 10px;
}
}