/* Waseet Enterprises — base theme overrides */
:root {
    --we-green: #1B7A3D;
    --we-green-light: #E8F5E9;
    --we-green-dark: #145A2C;
    --we-white: #FFFFFF;
}

/* CoolAdmin ki floating theme switcher ko hide karne ke liye */
.theme-switcher {
    display: none !important;
}

/* Force Modal to be on top to avoid CoolAdmin overlay bugs */
.modal {
    z-index: 99999 !important;
}

/* ⚡ Custom Sidebar Styling (Green Theme) */
.menu-sidebar {
    background-color: #145c2e !important; /* Dark Green Background */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

    /* Sidebar Logo Area */
    .menu-sidebar .logo {
        background-color: #0e4220 !important; /* Thora aur dark green top ke liye */
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .menu-sidebar .logo-text, .menu-sidebar .logo-mark {
        color: #ffffff !important;
    }

/* Navbar Links (Text and Icons) */
.navbar-sidebar .navbar__list li a {
    color: #d1e7dd !important; /* Light greenish-white text */
    font-weight: 500;
    transition: all 0.3s ease;
}

    /* Hover Effect */
    .navbar-sidebar .navbar__list li a:hover {
        background-color: #1B7A3D !important; /* Brand Green on hover */
        color: #ffffff !important;
        padding-left: 25px; /* Thora sa slide effect */
    }

/* Active Link (Jo page open ho) */
.navbar-sidebar .navbar__list li.active > a {
    background-color: #1B7A3D !important; /* Brand Green */
    color: #ffffff !important;
    font-weight: bold;
    border-left: 4px solid #6ee7b7; /* Side par bright green line */
}

/* Sub-menu (Admin Panel ke andar wale links) */
.navbar-sidebar .navbar__list li .navbar__sub-list {
    background-color: #0e4220 !important; /* Darker background for dropdown */
}

    .navbar-sidebar .navbar__list li .navbar__sub-list li a {
        color: #a3cfbb !important;
    }

        .navbar-sidebar .navbar__list li .navbar__sub-list li a:hover,
        .navbar-sidebar .navbar__list li .navbar__sub-list li.active a {
            color: #ffffff !important;
            background-color: transparent !important;
        }

/* =========================================
   ⚡ GLOBAL BUTTON OVERRIDES (Green Theme)
   ========================================= */

/* 1. Primary Buttons (m-btn--primary) */
.m-btn--primary {
    background-color: #1B7A3D !important;
    border-color: #1B7A3D !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

    .m-btn--primary:hover, .m-btn--primary:focus {
        background-color: #145c2e !important;
        border-color: #145c2e !important;
        box-shadow: 0 4px 8px rgba(27, 122, 61, 0.3) !important;
    }

/* 2. Bootstrap Primary Buttons (btn-primary) */
.btn-primary {
    background-color: #1B7A3D !important;
    border-color: #1B7A3D !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
        background-color: #145c2e !important;
        border-color: #145c2e !important;
        box-shadow: 0 4px 8px rgba(27, 122, 61, 0.3) !important;
    }

/* 3. Info Buttons (btn-info) -> Convert to Green */
.btn-info {
    background-color: #1B7A3D !important;
    border-color: #1B7A3D !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

    .btn-info:hover, .btn-info:focus, .btn-info:active {
        background-color: #145c2e !important;
        border-color: #145c2e !important;
        color: #ffffff !important;
    }

/* 4. Success Buttons (btn-success) - Ensure consistent green */
.btn-success {
    background-color: #1B7A3D !important;
    border-color: #1B7A3D !important;
}

    .btn-success:hover, .btn-success:focus, .btn-success:active {
        background-color: #145c2e !important;
        border-color: #145c2e !important;
    }

/* 5. Outline Primary Buttons (btn-outline-primary) */
.btn-outline-primary {
    color: #1B7A3D !important;
    border-color: #1B7A3D !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover, .btn-outline-primary:focus {
        background-color: #1B7A3D !important;
        color: #ffffff !important;
    }

/* ⚡ FIXED DROPDOWN STYLING ⚡ */

/* 1. Main Dropdown Box */
.account-dropdown {
    right: 0 !important;
    left: auto !important;
    min-width: 220px !important;
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border-radius: 10px !important;
    overflow: hidden;
}

    /* 2. Gradient Background (Header Area) */
    .account-dropdown .info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important; /* Right Align */
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important; /* Wapas light green gradient */
        padding: 15px 20px !important;
        border-bottom: 1px solid #d4edda;
    }

        /* 3. Username Text */
        .account-dropdown .info h5.name a {
            color: #145c2e !important; /* Dark Green text for contrast */
            font-weight: 700 !important;
            font-size: 16px !important;
            text-decoration: none !important;
        }

/* 4. Logout Footer */
.account-dropdown__footer {
    background-color: #ffffff !important; /* White background */
    text-align: right !important;
    padding: 12px 20px !important;
}

    /* 5. Logout Button */
    .account-dropdown__footer button {
        color: #1B7A3D !important;
        font-weight: 600 !important;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
    }

        .account-dropdown__footer button:hover {
            color: #0e4220 !important;
            transform: translateX(-3px);
        }

/* =========================================
   ⚡ FINAL RESPONSIVE FIXES (Mobile)
   ========================================= */

@media screen and (max-width: 991px) {
    /* 1. Parent container */
    .header-desktop .account-item {
        display: flex !important;
        visibility: visible !important;
    }

        /* 2. Content (Avatar + Name) */
        .header-desktop .account-item .content,
        .header-desktop .account-item .content.force-show-username {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
            align-items: center !important;
        }

            /* 3. Avatar Letter Force Fix */
            .header-desktop .account-item .content .avatar-text-force {
                font-size: 18px !important;
                color: #ffffff !important;
                text-indent: 0 !important;
                line-height: normal !important;
                opacity: 1 !important;
                visibility: visible !important;
                display: flex !important;
            }

            /* 4. Text (Name) Force Fix */
            .header-desktop .account-item .content a {
                display: block !important;
                color: #333 !important;
                font-weight: 600 !important;
                font-size: 14px !important;
            }

    /* 5. Dropdown position */
    .account-dropdown {
        right: 0 !important;
        left: auto !important;
        min-width: 200px !important;
        max-width: 250px !important;
    }
}

/* Double arrow hide */
.account-item .js-acc-btn::after {
    display: none !important;
}

/* =========================================
   ⚡ LANDING PAGE STYLES
   ========================================= */

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fcf9 0%, #e8f5e9 100%);
    border-bottom: 1px solid #d4edda;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #145c2e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-gradient {
    color: #1B7A3D;
    /* Optional: Text gradient effect */
    background: -webkit-linear-gradient(45deg, #1B7A3D, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: #fff;
    position: relative;
    z-index: 10;
    margin-top: -30px; /* Overlap effect */
}

.stat-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-bottom: 4px solid #1B7A3D;
}

    .stat-box:hover {
        transform: translateY(-10px);
    }

.stats-icon {
    font-size: 40px;
    color: #1B7A3D;
    margin-bottom: 15px;
}

.stats-number {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

.stats-label {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #145c2e;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

    .feature-card:hover {
        box-shadow: 0 15px 30px rgba(27, 122, 61, 0.1);
        border-color: #1B7A3D;
    }

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon {
    font-size: 30px;
    color: #1B7A3D;
}

/* How It Works */
.how-it-works-section {
    padding: 80px 0;
    background-color: #f8fcf9 !important;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: #1B7A3D;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(27, 122, 61, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: #145c2e;
    background-image: linear-gradient(135deg, #145c2e 0%, #1B7A3D 100%);
}

/* =========================================
   ⚡ TABLE TO CARDS ON MOBILE & PAGINATION
   ========================================= */

.table-responsive {
    border: none;
}

/* Desktop Pagination Style */
.pagination .page-link {
    color: #1B7A3D;
    border-color: #dee2e6;
    cursor: pointer;
}

.pagination .page-item.active .page-link {
    background-color: #1B7A3D;
    border-color: #1B7A3D;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

@media screen and (max-width: 768px) {
    /* Table ko block karein taake vertical cards ban jayein */
    .m-table, .m-table thead, .m-table tbody, .m-table th, .m-table td, .m-table tr {
        display: block;
    }

        /* Thead ko hide karein (kyunke labels hum data-label se dikhayenge) */
        .m-table thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

        /* Har row ko card ki shakal dein */
        .m-table tr {
            margin-bottom: 15px;
            border: 1px solid #e0e0e0 !important;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            padding: 10px;
        }

        /* Har cell ko nayi line par layein */
        .m-table td {
            border: none !important;
            border-bottom: 1px solid #eee !important;
            position: relative;
            padding: 10px 10px 10px 45% !important;
            text-align: right !important;
            min-height: 40px;
        }

            .m-table td:last-child {
                border-bottom: 0 !important;
            }

            /* Label (Name, Amount waghera) left side par dikhayein */
            .m-table td:before {
                content: attr(data-label);
                position: absolute;
                left: 10px;
                width: 40%;
                padding-right: 10px;
                white-space: nowrap;
                text-align: left;
                font-weight: bold;
                color: #555;
            }

            /* Actions button center mein layein */
            .m-table td.actions-col {
                text-align: center !important;
                padding: 10px !important;
            }

                .m-table td.actions-col:before {
                    display: none;
                }

            /* ⚡ NAYA: Name aur Username ko bold karne ke liye */
            .m-table td[data-label="Name"],
            .m-table td[data-label="Username"] {
                font-weight: 700 !important; /* Mota (Bold) text */
                color: #1B7A3D !important; /* Brand Green color (optional, taake alag nazar aaye) */
                font-size: 15px;
            }

                /* Label (Name: / Username:) ko normal rakhne ke liye */
                .m-table td[data-label="Name"]:before,
                .m-table td[data-label="Username"]:before {
                    font-weight: 600;
                    color: #555;
                }
}

/* =========================================
   ⚡ PAGE TITLES & SEARCH BAR STYLING
   ========================================= */

/* 1. Saaray Page Titles baray aur bold karein */
.m-card__title {
    font-size: 1.5rem !important; /* Title ka size barha diya */
    font-weight: 700 !important; /* Title ko bold kiya */
    color: #145c2e !important; /* Brand dark green color */
    margin-bottom: 0 !important;
}

/* 2. Title aur Search Bar ke darmiyan gap */
/* Humne search bar ki row ko class "mb-3" di hui hai jo pehle se margin deti hai, 
   lekin hum isay thora aur behtar kar rahe hain */
.m-card h2.m-card__title,
.m-card h3.m-card__title {
    margin-bottom: 1.5rem !important; /* Title ke neechay khali jagah */
}

/* 3. Search Bar ka design (Optional lekin professional) */
#investorsSearch,
#depositsSearch,
#invSearch,
#wdSearch,
#statementSearch,
#ledgerSearch {
    border-radius: 8px; /* Thora rounded corners */
    border: 1px solid #ced4da;
    padding: 0.6rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

    #investorsSearch:focus,
    #depositsSearch:focus,
    #invSearch:focus,
    #wdSearch:focus,
    #statementSearch:focus,
    #ledgerSearch:focus {
        border-color: #1B7A3D;
        box-shadow: 0 0 0 0.25rem rgba(27, 122, 61, 0.15);
        outline: none;
    }

/* =========================================
   ⚡ MOBILE FIX FOR HERO TITLE & SECTION TITLES
   ========================================= */
@media screen and (max-width: 768px) {
    /* 1. Hero Title (Grow Your Wealth...) */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    .hero-section {
        padding: 60px 0;
    }

    /* 2. ⚡ NAYA: Section Titles (Why Choose... & How It Works) */
    .section-title {
        font-size: 1.6rem !important; /* Mobile par chota kar diya */
        line-height: 1.3;
    }
}

/* =========================================
   ⚡ MOBILE BUTTON CLICK FIX
   ========================================= */
@media screen and (max-width: 768px) {
    .hero-section .mt-4 {
        position: relative;
        z-index: 10;
    }

    /* Buttons mobile par full width lenge aur text center hoga */
    .hero-section .m-btn--primary,
    .hero-section .btn-outline-primary {
        display: block !important; /* inline-block ki jagah block karein taake full width le */
        width: 100% !important;
        text-align: center !important; /* ⚡ Text ko center karne ke liye */
        margin-bottom: 12px !important;
        padding: 12px 20px !important;
        position: relative;
        z-index: 11;
        cursor: pointer;
        pointer-events: auto;
    }

    .hero-section .container {
        pointer-events: auto;
    }
}