/* Reset and Basic Setup */
:root {
    --m-sidebar-width: 260px;
    --m-topbar-height: 70px;
    --m-bg-body: #F4F7FB;
    --m-bg-sidebar: #FFFFFF;
    --m-bg-card: #FFFFFF;
    --m-text-main: #333333;
    --m-text-muted: #888888;
    --m-border: #E5E7EB;
    
    --m-blue: #0ea5e9;
    --m-light-blue: #e0f2fe;
    
    --c-blue: #0284c7;
    --c-teal: #0d9488;
    --c-purple: #9333ea;
    --c-indigo: #4f46e5;
    --c-cyan: #0891b2;
    --c-blue2: #2563eb;
    --c-red: #dc2626;
    --c-purple2: #7e22ce;
}

body.m-demo-body {
    background-color: var(--m-bg-body);
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    color: var(--m-text-main);
    display: flex;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* SIDEBAR */
.m-sidebar {
    width: var(--m-sidebar-width);
    background-color: var(--m-bg-sidebar);
    border-right: 1px solid var(--m-border);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.m-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--m-border);
}

.m-sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.m-sidebar-header h2 span {
    color: var(--m-blue);
    font-size: 14px;
}

.m-sidebar-subtitle {
    display: flex;
    flex-direction: column;
    font-size: 11px;
}
.m-sidebar-subtitle span {
    color: var(--m-text-muted);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.m-sidebar-nav {
    padding: 20px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.m-sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--m-text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.m-sidebar-nav .nav-item:hover {
    background-color: #F8FAFC;
}

.m-sidebar-nav .nav-item > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-sidebar-nav .nav-item i.fa-solid, 
.m-sidebar-nav .nav-item i.fa-regular {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--m-text-muted);
}

.m-sidebar-nav .nav-item.active {
    background-color: var(--m-light-blue);
    color: var(--m-blue);
    border-left: 4px solid var(--m-blue);
    border-radius: 0 8px 8px 0;
    margin-left: -15px;
    padding-left: 27px;
}
.m-sidebar-nav .nav-item.active i {
    color: var(--m-blue);
}

.m-sidebar-nav .nav-item.disabled {
    color: var(--m-text-main);
    cursor: not-allowed;
    opacity: 0.9;
}
.m-sidebar-nav .nav-item.disabled:hover {
    background-color: #F1F5F9;
}

.lock-badge {
    background-color: #F3F4F6;
    color: #9CA3AF;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.lock-badge i {
    font-size: 9px !important;
    color: #9CA3AF !important;
    width: auto !important;
}

.m-sidebar-contact {
    padding: 20px;
    background-color: #F8FAFC;
    margin: 15px;
    border-radius: 12px;
}
.m-sidebar-contact h4 {
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--m-text-main);
}
.m-sidebar-contact p {
    font-size: 11px;
    color: var(--m-text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}
.m-sidebar-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--m-blue);
    text-decoration: none;
    margin-bottom: 6px;
}


/* MAIN AREA */
.m-main {
    margin-left: var(--m-sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* TOPBAR */
.m-topbar {
    height: var(--m-topbar-height);
    background-color: var(--m-bg-sidebar);
    border-bottom: 1px solid var(--m-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.search-box {
    background-color: #F3F4F6;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 350px;
}
.search-box i {
    color: var(--m-text-muted);
}
.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--m-text-muted);
    position: relative;
    cursor: pointer;
}
.icon-btn .dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: var(--c-red);
    border-radius: 50%;
    border: 2px solid #fff;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--m-border);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}
.lang-selector i.ml-1 {
    font-size: 10px;
    color: var(--m-text-muted);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.user-info {
    text-align: right;
    display: flex;
    flex-direction: column;
}
.user-info strong {
    font-size: 14px;
    color: var(--m-text-main);
}
.user-info span {
    font-size: 11px;
    color: var(--m-text-muted);
}
.user-profile .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--m-text-muted);
}


/* DASHBOARD CONTENT */
.m-dashboard-layout {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    flex: 1;
}

/* LEFT COLUMN */
.m-dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 16px;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid #7dd3fc;
}
.welcome-content {
    position: relative;
    z-index: 2;
}
.welcome-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #0369a1;
}
.welcome-content p {
    font-size: 14px;
    color: #0c4a6e;
    line-height: 1.5;
}

.welcome-bg {
    position: absolute;
    right: 40px;
    bottom: -10px;
    opacity: 0.5;
}
.mosque-silhouette {
    width: 200px;
    height: 120px;
    background-image: radial-gradient(circle at 50% 100%, #38bdf8 40%, transparent 41%),
                      radial-gradient(circle at 20% 100%, #38bdf8 30%, transparent 31%),
                      radial-gradient(circle at 80% 100%, #38bdf8 30%, transparent 31%);
    background-size: 100px 100px, 60px 80px, 60px 80px;
    background-position: center bottom, left bottom, right bottom;
    background-repeat: no-repeat;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    background-color: var(--m-bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--m-border);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
}
.stat-icon.bg-blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.bg-purple { background: #f3e8ff; color: #7e22ce; }
.stat-icon.bg-pink { background: #fce7f3; color: #be185d; }
.stat-icon.bg-orange { background: #ffedd5; color: #c2410c; }

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.stat-info .label {
    font-size: 12px;
    color: var(--m-text-muted);
}
.stat-info .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--m-text-main);
}
.stat-lock {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #F3F4F6;
    color: #9CA3AF;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Features Grid */
.features-section {
    background-color: var(--m-bg-card);
    border-radius: 16px;
    border: 1px solid var(--m-border);
    overflow: hidden;
    position: relative;
    /* Add a subtle blue border to match the design */
    border: 2px solid var(--m-blue);
}
.features-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--m-border);
}
.features-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
}
.features-header p {
    font-size: 13px;
    color: var(--m-text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px;
    gap: 40px 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
    border-radius: 12px;
    cursor: not-allowed;
}
.feature-item:hover {
    transform: translateY(-4px);
    background-color: #F8FAFC;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.f-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.f-icon.c-blue { background: #e0f2fe; color: #0284c7; }
.f-icon.c-teal { background: #ccfbf1; color: #0d9488; }
.f-icon.c-purple { background: #f3e8ff; color: #9333ea; }
.f-icon.c-indigo { background: #e0e7ff; color: #4f46e5; }
.f-icon.c-cyan { background: #cffafe; color: #0891b2; }
.f-icon.c-blue2 { background: #dbeafe; color: #2563eb; }
.f-icon.c-red { background: #fee2e2; color: #dc2626; }
.f-icon.c-purple2 { background: #fae8ff; color: #c026d3; }

.feature-item h4 {
    font-size: 14px;
    font-weight: 600;
}
.f-lock {
    background-color: #F3F4F6;
    color: #9CA3AF;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.features-footer {
    background-color: #fff7ed;
    color: #c2410c;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
    border-top: 1px dashed #fdba74;
}


/* RIGHT COLUMN */
.m-dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Locked Card */
.locked-card {
    background-color: var(--m-bg-card);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--m-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.lock-icon-lg {
    width: 60px;
    height: 60px;
    background-color: var(--m-blue);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
}
.locked-card h3 {
    font-size: 18px;
    font-weight: 700;
}
.locked-card p {
    font-size: 13px;
    color: var(--m-text-muted);
    line-height: 1.5;
}
.btn-demo-contact {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 20px;
    background-color: var(--m-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.2);
}
.btn-demo-contact:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(14, 165, 233, 0.3);
}

/* Checklist Card */
.checklist-card {
    background-color: var(--m-bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--m-border);
}
.checklist-card h3 {
    font-size: 16px;
    margin-bottom: 20px;
}
.d-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.d-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--m-text-main);
}
.d-checklist li i {
    color: var(--m-blue);
}

/* FOOTER */
.m-dashboard-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--m-border);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--m-text-muted);
    background-color: var(--m-bg-body);
}

@media (max-width: 576px) {
    .m-dashboard-footer {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .m-dashboard-layout {
        grid-template-columns: 1fr;
    }
    .welcome-bg {
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    .m-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .m-sidebar.active {
        transform: translateX(0);
    }
    .m-main {
        margin-left: 0;
    }
    .m-topbar {
        padding: 0 15px;
    }
    .topbar-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mobile-menu-btn {
        display: flex !important;
        background: none;
        border: none;
        font-size: 20px;
        color: var(--m-text-main);
        cursor: pointer;
    }
    .search-box {
        width: 160px;
        padding: 8px 10px;
    }
    .user-info {
        display: none;
    }
    .lang-selector {
        padding: 6px 8px;
    }
    .m-dashboard-layout {
        padding: 15px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
        gap: 15px 10px;
    }
    .welcome-banner {
        padding: 20px;
    }
    .welcome-content h2 {
        font-size: 20px;
    }
    .m-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 95;
    }
    .m-sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card {
        padding: 15px 10px;
    }
    .stat-info .value {
        font-size: 18px;
    }
}
