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

:root {
/*  --edupay-primary: #6c5ce7;
--edupay-primary: #6c5ce7;
--edupay-primary-dark: #5649c9;
--edupay-secondary: #a29bfe;
--edupay-dark: #2d3436;
--edupay-gray: #636e72;
--edupay-light-gray: #dfe6e9;
--edupay-danger: #d63031;
--edupay-success: #00b894;
--edupay-warning: #fdcb6e;
--edupay-white: #ffffff;
--edupay-light-bg: #f8f9fa;
--edupay-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); */
--primary: #6c5ce7;
--primary-dark: #5649c9;
--primary-light: #a29bfe;
--primary-rgb: 108, 92, 231;
--secondary: #a29bfe;
--accent: #f72585;
--success: #00b894;
--warning: #fdcb6e;
--danger: #d63031;
--dark: #2d3436;
--light: #fafafa;
--gray: #636e72;
--light-gray: #dfe6e9;
--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%);

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

* {
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;
}

.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;
}

/* Enhanced Card Design */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card:hover::before {
    opacity: 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;
}

/* Modern Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(var(--primary-rgb), 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(var(--primary-rgb), 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
}

.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);
}

/* Add after your existing .btn styles */
.btn-auto {
    width: auto !important;
}

/* Or as an alternative for more control */
.btn-fit-content {
    width: fit-content !important;
    min-width: auto !important;
}

/* You can also make it responsive */
@media (max-width: 900px) {
    .btn:not(.btn-auto):not(.btn-fit-content) {
        width: 100%;
    }
}

.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);
}

/* Enhanced Status Badges */
.status {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status.success {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.1);
}

.status.pending {
    background: rgba(255, 171, 0, 0.15);
    color: var(--warning);
    box-shadow: 0 2px 8px rgba(255, 171, 0, 0.1);
}

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

.fee-item { 
display: flex;
justify-content: space-between;
align-items: center;
padding: 9px 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;
}

/* Enhanced Progress Bars */
.progress-bar {
    height: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    position: relative;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.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;
}

/* Modern Tabs */
.tabs {
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 16px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

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

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray);
    position: relative;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    background: rgba(var(--primary-rgb), 0.1);
}

.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;
}

/* Enhanced Form Inputs */
.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 
        0 0 0 4px rgba(var(--primary-rgb), 0.1),
        0 2px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    background: white;
}

.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 */


 .edupay-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .edupay-section {
            background: var(--white);
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            overflow: hidden;
            height: 100%;
        }

        .edupay-section-header {
            padding: 16px;
            border-bottom: 1px solid var(--light-gray);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .edupay-section-header h2 {
            font-size: 1.1rem;
            font-weight: 600;
        }

        .edupay-view-all {
            color: var(--primary);
            font-size: 0.8rem;
            font-weight: 500;
            text-decoration: none;
            /* display: flex; */
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }

        .edupay-scroll-container {
            max-height: 380px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .edupay-balance-toggle,
        .edupay-refresh-btn {
            background: transparent;
            border: none;
            color: var(--gray);
            font-size: 1rem;
            cursor: pointer;
            padding: 0px;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .edupay-balance-toggle:hover,
        .edupay-refresh-btn:hover {
            background: var(--light-bg);
            color: var(--primary);
        }




/* Smooth Page Transitions */
.content-section {
animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
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 0px;
}

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;
}


/* Edupay Modal Styles */
.edupay-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
justify-content: center;
align-items: center;
padding: 16px;
backdrop-filter: blur(5px);
}

.edupay-modal-content {
background-color: white;
border-radius: 16px;
padding: 24px;
width: 100%;
max-width: 400px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
position: relative;
max-height: 95vh;
overflow-y: auto;
/* Animation for smooth appearance */
animation: modalFadeIn 0.3s ease-out;
}

.edupay-close-modal {
position: absolute;
top: 16px;
right: 16px;
background: transparent;
border: none;
font-size: 1.5rem;
color: var(--gray);
cursor: pointer;
}

.edupay-modal-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 16px;
color: var(--dark);
}


.edupay-modal-actions {
display: flex;
gap: 10px; /* Reduced from 12px */
margin-top: 16px; /* Reduced from 20px */
}

.edupay-modal-btn {
flex: 1;
padding: 10px; /* Reduced from 12px */
border-radius: 10px; /* Reduced from 12px */
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
gap: 6px; /* Reduced from 8px */
cursor: pointer;
border: none;
transition: all 0.2s;
font-size: 0.9rem; /* Added for consistency */
}

.edupay-modal-cancel {
background: var(--light-bg);
color: var(--dark);
}

.edupay-modal-cancel:hover {
background: var(--light-gray);
}

.edupay-modal-confirm {
background: var(--primary);
color: var(--white);
}

.edupay-modal-confirm:hover {
background: var(--primary-dark);
}

/* edupay Modal Styles End */   



.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: 35px;
height: 35px;
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);*/
background: linear-gradient(135deg, #6c5ce7, #5649c9);
}

.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: 15px;
height: 15px;
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: 35px;
height: 35px;
}

.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: 35px;
height: 35px;
}
}

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

.theme-options {
gap: 12px;
}

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

/* 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;
*/
--primary: #6c5ce7;
--primary-dark: #5649c9;
--primary-light: #a29bfe;
--primary-rgb: 108, 92, 231;
}

.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 */

.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.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Enhanced Focus States */
*:focus {
    outline: 3px solid rgba(var(--primary-rgb), 0.3);
    outline-offset: 2px;
    border-radius: 8px;
}

/* 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); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    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;
}
}




/* Samsung Galaxy S8 Specific (360px and below) */
@media (max-width: 360px) {
body {
padding: 8px;
font-size: 13px;
}

.container {
padding: 0 4px;
}

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

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

.user-avatar {
width: 36px;
height: 36px;
font-size: 0.95rem;
}

.mobile-menu-btn {
width: 34px;
height: 34px;
font-size: 1rem;
}

/* Card adjustments */
.card {
padding: 16px;
margin: 0 2px;
}

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

/* Wallet balance */
.wallet-balance {
padding: 14px;
}

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

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

.btn2 {
padding: 8px 10px;
font-size: 0.8rem;
}

/* Virtual account */
.virtual-account {
padding: 14px;
}

.account-details p {
font-size: 1.2rem;
letter-spacing: 0.5px;
}

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

/* Forms */
.auth-container {
padding: 18px;
margin: 16px auto;
}

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

/* Theme options */
.theme-option {
width: 45px;
height: 45px;
}

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

.otp-container {
gap: 6px;
padding: 10px;
}

/* Modal */
/*.modal-content {
padding: 16px;
width: 95%;
}*/

/* Navigation */
.sidebar {
width: 260px;
}

.nav-links a {
padding: 10px 12px;
font-size: 0.85rem;
}

/* Fee items */
.fee-item {
padding: 12px 0;
font-size: 0.85rem;
}

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

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

/* Chart */
.chart-container {
gap: 8px;
}

.bar {
width: 28px;
}

.bar-label {
font-size: 0.8rem;
}

/* Notification */
.notification-container {
right: 12px;
left: 12px;
max-width: none;
}

.notification {
padding: 16px;
}

/* Fix for very small screens */
.wallet-actions {
justify-content: center;
}

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

/* Improve touch targets */
.btn-icon {
width: 40px;
height: 40px;
min-height: 40px;
}

/* Fix for text overflow */
.account-details p,
.balance-amount,
.user-details h3 {
word-break: break-word;
overflow-wrap: break-word;
}
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
body {
padding: 6px;
font-size: 12.5px;
}

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

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

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

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

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

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

.btn {
padding: 7px 10px;
font-size: 0.8rem;
}
}

/* Samsung S8 specific utilities */
@media (max-width: 360px) {
/* Hide less important elements */
.desktop-only {
display: none !important;
}

/* Stack buttons vertically when needed */
.stack-buttons {
flex-direction: column;
gap: 8px;
}

.stack-buttons .btn {
width: 100%;
}

/* Optimize tables for very small screens */
.mobile-card-view .fee-detail {
display: flex;
flex-direction: column;
gap: 4px;
}

.mobile-card-view .detail-label {
font-size: 0.75rem;
}

.mobile-card-view .detail-value {
font-size: 0.85rem;
font-weight: 600;
}

/* Prevent zoom on input focus */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
font-size: 16px !important;
max-height: 44px;
}

/* Improve tap targets */
.nav-links a,
.tab-btn,
.fee-item,
.history-table tbody tr {
min-height: 44px;
display: flex;
align-items: center;
}

/* Compact spacing */
.dashboard {
gap: 12px;
}

.content {
gap: 12px;
}

/* Smaller margins */
.card-header {
margin-bottom: 16px;
padding-bottom: 10px;
}
}


/* Transaction Pin Setup */

.edupay-pin-step {
display: none;
}

.edupay-pin-step.active {
display: block;
}

.edupay-pin-description {
text-align: center;
margin-bottom: 20px;
color: var(--gray);
font-size: 0.9rem;
}

.edupay-otp-input,
.edupay-pin-input {
display: flex;
justify-content: center;
gap: 10px;
margin: 20px 0;
}

.edupay-otp-input input,
.edupay-pin-input input {
width: 45px;
height: 50px;
border: 2px solid var(--light-gray);
border-radius: 8px;
text-align: center;
font-size: 1.2rem;
font-weight: 600;
transition: all 0.2s;
}

.edupay-otp-input input:focus,
.edupay-pin-input input:focus {
border-color: var(--primary);
outline: none;
box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.edupay-otp-resend {
text-align: center;
margin: 15px 0;
font-size: 0.85rem;
color: var(--gray);
}

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

.edupay-otp-resend a:hover {
text-decoration: underline;
}

.edupay-pin-forgot {
text-align: center;
margin: 15px 0;
font-size: 0.85rem;
}

.edupay-pin-forgot a {
color: var(--primary);
text-decoration: none;
}

.edupay-pin-forgot a:hover {
text-decoration: underline;
}

.edupay-pin-error {
color: var(--danger);
text-align: center;
font-size: 0.85rem;
margin: 10px 0;
display: none;
}

.edupay-pin-error.show {
display: block;
}

/* Loader Overlay Styles */
/* Loader Styles */
.edupay-loader-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.9);
display: none;
justify-content: center;
align-items: center;
z-index: 2000;
}

.edupay-modal-loader {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 16px;
display: none;
justify-content: center;
align-items: center;
z-index: 10;
}

.edupay-small-loader {
display: inline-block;
width: 32px;
height: 32px;
border: 3px solid rgba(108, 92, 231, 0.2);
border-radius: 50%;
border-top-color: var(--primary);
animation: spin 0.8s linear infinite;
}

.edupay-loader-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
gap: 12px;
padding: 20px;
background: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.edupay-loader-text {
font-size: 0.9rem;
color: var(--dark);
font-weight: 500;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.refreshing i {
animation: spin 0.8s linear infinite;
}
/* Styles for Simple Success Modal */
/* Simple Success Modal - Fixed */
/* Simple Success Modal - Optimized */
.simple-success-modal {
max-width: 320px; /* Reduced from 350px */
text-align: center;
padding: 30px 25px; /* Reduced padding */
animation: simpleModalAppear 0.3s ease;
}

@keyframes simpleModalAppear {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}

/* Big Animated Check Icon - Optimized */
.simple-success-icon {
margin-bottom: 20px; /* Reduced from 25px */
}

.check-container {
position: relative;
display: inline-block;
width: 70px; /* Reduced from 80px */
height: 70px; /* Reduced from 80px */
}

.check-circle {
width: 70px; /* Reduced from 80px */
height: 70px; /* Reduced from 80px */
background: var(--success);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 2rem; /* Reduced from 2.5rem */
position: relative;
animation: circleGrow 0.5s ease-out;
}

.check-circle::before {
content: '';
position: absolute;
top: -4px;
left: -4px;
right: -4px;
bottom: -4px;
border: 2px solid rgba(0, 184, 148, 0.2);
border-radius: 50%;
animation: ripple 1s ease-out 0.2s;
}

.check-circle i {
opacity: 0;
animation: checkFadeIn 0.3s ease 0.4s forwards;
}

@keyframes circleGrow {
0% {
transform: scale(0);
}
70% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}

@keyframes checkFadeIn {
to {
opacity: 1;
}
}

@keyframes ripple {
0% {
transform: scale(0.9);
opacity: 1;
}
100% {
transform: scale(1.3);
opacity: 0;
}
}

/* Success Message - Optimized */
.simple-success-message {
margin-bottom: 20px; /* Reduced from 30px */
animation: simpleFadeIn 0.4s ease 0.2s both;
}

@keyframes simpleFadeIn {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.simple-success-message h2 {
font-size: 1.5rem; /* Reduced from 1.8rem */
font-weight: 700;
margin-bottom: 8px; /* Reduced from 10px */
color: var(--success);
}

.simple-success-message .small-text {
font-size: 0.95rem; /* Reduced from 1rem */
color: var(--gray);
line-height: 1.4;
}

/* Details Link - New */
.details-link {
margin: 15px 0; /* Added spacing */
animation: simpleFadeIn 0.4s ease 0.3s both;
}

.details-link a {
color: var(--primary);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
border-radius: 6px;
transition: all 0.2s ease;
}

.details-link a:hover {
background: rgba(108, 92, 231, 0.05);
text-decoration: underline;
}

.details-link a i {
font-size: 0.85rem;
}

/* Continue Button - Optimized */
.simple-continue-btn {
background: var(--primary);
color: white;
border: none;
border-radius: 8px; /* Reduced from 10px */
padding: 12px 24px; /* Reduced from 14px 32px */
font-size: 1rem; /* Reduced from 1.1rem */
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
width: 100%;
animation: simpleFadeIn 0.4s ease 0.4s both;
}

.simple-continue-btn:hover {
background: var(--primary-dark);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25); /* Reduced shadow */
}

.simple-continue-btn:active {
transform: translateY(0);
}

/* Responsive - Optimized */
@media (max-width: 480px) {
.simple-success-modal {
padding: 25px 20px; /* Reduced */
max-width: 85%;
}

.check-container {
width: 60px;
height: 60px;
}

.check-circle {
width: 60px;
height: 60px;
font-size: 1.7rem;
}

.simple-success-message h2 {
font-size: 1.3rem;
}

.simple-success-message .small-text {
font-size: 0.9rem;
}

.details-link a {
font-size: 0.85rem;
}

.simple-continue-btn {
padding: 10px 20px;
font-size: 0.95rem;
}
}
/* End of Simple Success Modal Styles */
/* Styles for Ultra Simple Success Modal */
/* Ultra Simple Success Modal */
.ultra-success-modal {
max-width: 320px;
text-align: center;
padding: 40px 25px;
}

/* Big Check Icon */
.ultra-check-icon {
width: 80px;
height: 80px;
background: var(--success);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 25px;
color: white;
font-size: 2.5rem;
animation: ultraBounce 0.6s ease;
}

@keyframes ultraBounce {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
}

/* Success Message */
.ultra-message h2 {
font-size: 1.6rem;
font-weight: 700;
margin-bottom: 8px;
color: var(--success);
}

.ultra-message .small-text {
font-size: 0.95rem;
color: var(--gray);
margin-bottom: 25px;
line-height: 1.4;
}

/* Continue Button */
.ultra-continue-btn {
background: var(--primary);
color: white;
border: none;
border-radius: 8px;
padding: 12px 30px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
width: 100%;
}

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

/* Responsive */
@media (max-width: 480px) {
.ultra-success-modal {
padding: 30px 20px;
}

.ultra-check-icon {
width: 70px;
height: 70px;
font-size: 2rem;
}

.ultra-message h2 {
font-size: 1.4rem;
}

.ultra-message .small-text {
font-size: 0.9rem;
}
}
/* End of Ultra Simple Success Modal Styles */

/* Idle Timeout Modal Styles */
/* Idle Timeout Modal - Compact Version with Theme Variables */
#edupay-idle-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
z-index: 9999;
justify-content: center;
align-items: center;
padding: 20px;
}

#edupay-idle-modal .edupay-modal-content {
background: var(--white);
border-radius: var(--border-radius);
padding: 20px;
width: 100%;
max-width: 300px;
box-shadow: var(--shadow);
animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.edupay-idle-content {
text-align: center;
padding: 5px;
}

.edupay-idle-icon {
font-size: 2.2rem;
color: var(--warning);
margin-bottom: 12px;
}

.edupay-idle-content .edupay-modal-title {
font-size: 1.1rem;
margin-bottom: 8px;
color: var(--dark);
}

.edupay-idle-message {
color: var(--gray);
margin-bottom: 12px;
font-size: 0.9rem;
line-height: 1.3;
}

.edupay-countdown {
background: linear-gradient(135deg, var(--warning), #e8a93a);
color: var(--white);
padding: 12px 20px;
border-radius: 10px;
margin: 12px 0;
display: inline-block;
min-width: 90px;
transition: var(--transition);
}

.edupay-countdown-number {
font-size: 2rem;
font-weight: bold;
display: block;
font-family: monospace;
line-height: 1;
}

.edupay-countdown-label {
font-size: 0.8rem;
opacity: 0.9;
margin-top: 2px;
}

.edupay-idle-warning {
color: var(--danger);
font-size: 0.8rem;
margin: 12px 0 16px 0;
font-weight: 500;
line-height: 1.3;
}

#edupay-idle-modal .edupay-modal-actions {
display: flex;
gap: 10px;
margin-top: 16px;
}

#edupay-idle-modal .edupay-modal-btn {
flex: 1;
padding: 10px 16px;
border-radius: 8px;
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
border: none;
transition: var(--transition);
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}

#edupay-idle-modal .edupay-modal-cancel {
background: var(--light-gray);
color: var(--dark);
}

#edupay-idle-modal .edupay-modal-cancel:hover {
background: #b2bec3;
transform: translateY(-1px);
}

#edupay-idle-modal .edupay-modal-confirm {
background: var(--primary);
color: var(--white);
}

#edupay-idle-modal .edupay-modal-confirm:hover {
background: var(--primary-dark);
transform: translateY(-1px);
}

/* Animation for warning */
@keyframes pulseWarning {
0% { transform: scale(1); }
50% { transform: scale(1.03); }
100% { transform: scale(1); }
}

@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-2px); }
75% { transform: translateX(2px); }
}

/* Mobile optimization */
@media (max-width: 480px) {
#edupay-idle-modal .edupay-modal-content {
max-width: 280px;
padding: 18px;
}

.edupay-idle-icon {
font-size: 2rem;
margin-bottom: 10px;
}

.edupay-countdown {
padding: 10px 18px;
min-width: 80px;
}

.edupay-countdown-number {
font-size: 1.8rem;
}

#edupay-idle-modal .edupay-modal-actions {
gap: 8px;
}

#edupay-idle-modal .edupay-modal-btn {
padding: 8px 14px;
font-size: 0.85rem;
height: 38px;
}
}
/* End of Idle Timeout Modal Styles */



/* Login Type Selector Styles */
.login-type-selector {
    text-align: center;
    margin-bottom: 28px;
    animation: fadeIn 0.4s ease;
}

.login-type-selector h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.login-buttons {
    
    display: flex;
    flex-direction: row;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.login-buttons > .login-type-btn {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    background: var(--card-gradient);
    border: 2px solid var(--light-gray);
    border-radius: 16px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.login-buttons > .login-type-btn i {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.login-buttons > .login-type-btn span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

.login-buttons > .login-type-btn:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.2);
}

.login-buttons > .login-type-btn:hover i {
    transform: scale(1.1);
}

.login-buttons > .login-type-btn:active {
    transform: translateY(-2px);
}

/* "or" separator styling */
.login-buttons > .or-separator {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    background: rgba(var(--primary-rgb), 0.08);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    order: 0;
}

/* Responsive styles - Keep "or" between buttons */
@media (max-width: 580px) {
    .login-type-selector h1 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .login-buttons {
        gap: 8px;
    }
    
    .login-buttons > .login-type-btn {
        min-width: 120px;
        padding: 14px 12px;
    }
    
    .login-buttons > .login-type-btn i {
        font-size: 1.5rem;
    }
    
    .login-buttons > .login-type-btn span {
        font-size: 0.85rem;
    }
    
    .login-buttons > .or-separator {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Mobile view - Keep all three in a row */
@media (max-width: 480px) {
    .login-buttons {
        flex-wrap: nowrap;
        gap: 6px;
    }
    
    .login-buttons > .login-type-btn {
        min-width: 0;
        flex: 1;
        padding: 12px 8px;
        max-width: none;
    }
    
    .login-buttons > .login-type-btn i {
        font-size: 1.3rem;
    }
    
    .login-buttons > .login-type-btn span {
        font-size: 0.75rem;
    }
    
    .login-buttons > .or-separator {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

/* Very small screens - Keep in one row but smaller */
@media (max-width: 380px) {
    .login-buttons {
        gap: 4px;
    }
    
    .login-buttons > .login-type-btn {
        padding: 10px 6px;
    }
    
    .login-buttons > .login-type-btn i {
        font-size: 1.1rem;
    }
    
    .login-buttons > .login-type-btn span {
        font-size: 0.7rem;
    }
    
    .login-buttons > .or-separator {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
}

/* Tablet view */
@media (min-width: 481px) and (max-width: 768px) {
    .login-buttons > .login-type-btn {
        min-width: 145px;
        padding: 16px 14px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}