:root {
    --primary-color: #0D47A1; /* Deep Blue */
    --secondary-color: #1976D2; /* Bright Blue */
    --accent-color: #ffffff; /* White */
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --background-light: #f4f7f6;
    --background-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

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

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

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

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--text-white);
}

.section-padding {
    padding: 80px 0;
}

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

/* Header & Navigation */
header {
    background-color: var(--background-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

/* Mobile only nav items hidden by default */
.mobile-only-nav {
    display: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-white);
    padding: 160px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    background-color: var(--background-white);
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 10px;
    background: var(--background-light);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--background-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-only-nav {
        display: block;
        margin-top: 10px;
        border-top: 1px solid var(--border-color);
        padding-top: 10px;
    }

    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }

    /* Force hamburger menu visibility on mobile */
    .nav-control, .hamburger {
        display: block !important;
        right: 0 !important; /* Reset potential off-screen positioning */
    }
    
    .nav-header .nav-control .hamburger .line {
        background-color: var(--primary-color) !important;
    }
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f9f9f9;
}

.faq-answer p {
    padding: 0 25px 25px 25px;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* Active State for FAQ */
.faq-item.active .faq-question {
    background: var(--primary-color);
}

.faq-item.active .faq-question h3 {
    color: white;
}

.faq-item.active .faq-question i {
    color: white;
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust based on content length */
    padding-top: 20px;
}

/* Modal Styling Overrides */
.modal-content {
    background-color: white !important;
    border: none;
}

.modal-body {
    background-color: white !important;
}

.form-control, 
.input-group-text, 
input, 
textarea {
    background-color: white !important; /* Force white background */
    color: var(--text-dark) !important;
    border-color: var(--border-color);
}

.form-control:focus, 
input:focus, 
textarea:focus {
    background-color: white !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1) !important;
    color: var(--text-dark) !important;
}

/* Fix for disabled or readonly inputs that might look grey/blue */
input[readonly], 
textarea[readonly] {
    background-color: #f8f9fa !important; /* Light grey for readonly, not blue */
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--background-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.quote-icon {
    font-size: 30px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 12px;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Auth Pages */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--background-light);
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
}

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

.auth-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-footer a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Dashboard */
.dashboard-header {
    background-color: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.user-welcome {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.balance-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.account-number {
    font-family: monospace;
    font-size: 16px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.action-btn:hover {
    background: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.action-icon {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.action-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.transaction-list {
    list-style: none;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.t-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 15px;
}

.t-info {
    flex: 1;
}

.t-title {
    font-weight: 600;
    color: var(--text-dark);
}

.t-date {
    font-size: 12px;
    color: var(--text-light);
}

.t-amount {
    font-weight: 700;
}

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

.t-amount.negative {
    color: var(--text-dark);
}

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

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom Hamburger Menu Styling */
/* Hidden by default for Desktop */
.custom-hamburger {
    display: none; 
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 35px;
    background: var(--primary-color) !important;
    cursor: pointer;
    z-index: 1001;
    padding: 8px 6px;
    margin: 0;
    border-radius: 5px;
}

.custom-line {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background: white !important;
    opacity: 1 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 0 !important;
    border: none !important;
}

/* Ensure Logo Visibility on Mobile */
.mobile-logo {
    display: block !important;
    max-height: 50px;
    width: auto;
}

/* Force Dashboard Bar (Header Left) to be visible */
.dashboard_bar {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Specific Mobile Adjustments */
@media (max-width: 768px) {
    .nav-header {
        width: 60px !important; 
        background: transparent !important; 
        border: none !important;
        left: 0 !important;
        position: absolute !important;
        z-index: 1002 !important;
    }
    
    .nav-control {
        right: auto !important;
        left: 15px !important;
        top: 20px !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
        position: relative !important;
    }
    
    /* Ensure Hamburger is visible on mobile */
    .custom-hamburger {
        display: flex !important;
    }

    /* Force lines to be white on mobile explicitly with HIGH PRIORITY */
    html body .nav-header .nav-control .custom-hamburger .custom-line {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #ffffff !important;
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        opacity: 1 !important;
        visibility: visible !important;
        border: 1px solid #ffffff !important; /* Fallback border */
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    .header {
        padding-left: 0 !important;
    }

    .header .header-content {
        padding-left: 60px !important;
        justify-content: flex-start !important; 
    }
    
    .header-left {
        display: flex !important;
        align-items: center;
        margin-left: 10px;
    }
    
    .hamburger {
        display: flex !important; 
    }
}

/* Fix Sidebar Visibility on Desktop Resize */
@media (min-width: 769px) {
    .dlabnav {
        display: block !important;
        left: 0 !important; 
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide custom hamburger on desktop explicitly again for safety */
    .custom-hamburger {
        display: none !important;
    }
}
