/* assets/css/style.css */

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

html{
scroll-behavior:smooth;
}

body{
font-family:sans-serif;
background:#f3f4f6;
overflow-x:hidden;
color:#111;
}

/*
|--------------------------------------------------------------------------
| SCROLLBAR
|--------------------------------------------------------------------------
*/

::-webkit-scrollbar{
width:6px;
height:6px;
}

::-webkit-scrollbar-thumb{
background:#0f5132;
border-radius:20px;
}

/*
|--------------------------------------------------------------------------
| SIDEBAR
|--------------------------------------------------------------------------
*/

.sidebar{
width:270px;
background:linear-gradient(to bottom,#22020a,#041d13);
min-height:100vh;
position:fixed;
left:0;
top:0;
bottom:0;
overflow-y:auto;
z-index:50;
}

/*
|--------------------------------------------------------------------------
| MENU
|--------------------------------------------------------------------------
*/

.menu{
display:flex;
align-items:center;
gap:14px;
padding:15px 18px;
border-radius:16px;
font-weight:700;
transition:.3s;
color:white;
text-decoration:none;
font-size:15px;
}

.menu:hover{
background:#0f5132;
transform:translateX(5px);
}

.menu i{
width:20px;
text-align:center;
}

/*
|--------------------------------------------------------------------------
| INPUT
|--------------------------------------------------------------------------
*/

.input{
width:100%;
padding:14px 16px;
border-radius:16px;
border:1px solid #ddd;
outline:none;
transition:.3s;
background:#fff;
font-size:15px;
}

.input:focus{
border-color:#0f5132;
box-shadow:0 0 0 4px rgba(15,81,50,.1);
}

/*
|--------------------------------------------------------------------------
| BUTTON
|--------------------------------------------------------------------------
*/

.btn{
padding:14px 22px;
border-radius:16px;
font-weight:700;
transition:.3s;
display:inline-flex;
align-items:center;
justify-content:center;
gap:10px;
border:none;
cursor:pointer;
text-decoration:none;
}

.btn-green{
background:#15803d;
color:white;
}

.btn-green:hover{
background:#166534;
}

.btn-blue{
background:#2563eb;
color:white;
}

.btn-blue:hover{
background:#1d4ed8;
}

.btn-red{
background:#dc2626;
color:white;
}

.btn-red:hover{
background:#b91c1c;
}

/*
|--------------------------------------------------------------------------
| CARD
|--------------------------------------------------------------------------
*/

.card{
background:white;
border-radius:25px;
box-shadow:0 10px 30px rgba(0,0,0,.06);
transition:.3s;
overflow:hidden;
}

.card:hover{
transform:translateY(-5px);
}

/*
|--------------------------------------------------------------------------
| TABLE
|--------------------------------------------------------------------------
*/

.table{
width:100%;
border-collapse:collapse;
}

.table th{
background:#042616;
color:white;
padding:16px;
text-align:left;
font-size:14px;
}

.table td{
padding:14px;
border-bottom:1px solid #eee;
font-size:14px;
}

/*
|--------------------------------------------------------------------------
| DASHBOARD
|--------------------------------------------------------------------------
*/

.dashboard-layout{
display:flex;
min-height:100vh;
}

.main-content{
width:100%;
margin-left:270px;
background:#f3f4f6;
min-height:100vh;
}

.top-cards{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:18px;
}

.bottom-grid{
display:grid;
grid-template-columns:1.3fr 1.3fr .9fr .9fr;
gap:18px;
margin-top:18px;
}

/*
|--------------------------------------------------------------------------
| STAT CARD
|--------------------------------------------------------------------------
*/

.stat-card{
border-radius:24px;
padding:28px;
color:white;
box-shadow:0 10px 30px rgba(0,0,0,.12);
}

/*
|--------------------------------------------------------------------------
| QUICK CARD
|--------------------------------------------------------------------------
*/

.quick-card{
transition:.3s;
}

.quick-card:hover{
transform:translateY(-5px);
}

/*
|--------------------------------------------------------------------------
| MOBILE SIDEBAR
|--------------------------------------------------------------------------
*/

#mobileMenu{
transition:.3s;
}

#mobileMenu .menu{
margin-bottom:6px;
}

/*
|--------------------------------------------------------------------------
| IMAGE
|--------------------------------------------------------------------------
*/

img{
max-width:100%;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media(max-width:1200px){

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

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

}

@media(max-width:991px){

.sidebar{
display:none;
}

.main-content{
margin-left:0 !important;
width:100% !important;
}

.top-cards{
grid-template-columns:1fr !important;
}

.bottom-grid{
grid-template-columns:1fr !important;
}

.table{
min-width:700px;
}

}

@media(max-width:768px){

body{
font-size:14px;
}

.card{
border-radius:20px;
}

.stat-card{
padding:22px;
}

.btn{
padding:12px 18px;
font-size:14px;
}

.input{
padding:13px 15px;
font-size:14px;
}

}
/* ================================================================
   PUBLIC WEBSITE PREMIUM FALLBACK UI
   Works even when Tailwind CDN is unavailable.
   ================================================================ */
:root{
  --ms-green:#15803d;
  --ms-green-dark:#0b5d2a;
  --ms-green-deep:#06351e;
  --ms-gold:#d4a017;
  --ms-gold-light:#f5d76e;
  --ms-maroon:#7f1d1d;
  --ms-bg:#f7f8f5;
  --ms-card:#ffffff;
  --ms-text:#1f2937;
  --ms-muted:#6b7280;
  --ms-border:#e5e7eb;
}
body{background:var(--ms-bg);color:var(--ms-text);font-family:system-ui,-apple-system,"Noto Sans Devanagari",sans-serif;}
body.menu-open{overflow:hidden}

.site-nav{background:linear-gradient(90deg,var(--ms-green-deep),var(--ms-green));box-shadow:0 5px 18px rgba(0,0,0,.12);position:relative;z-index:100;}
.site-nav-inner{max-width:1500px;margin:auto;display:flex;align-items:stretch;justify-content:center;gap:2px;overflow-x:auto;scrollbar-width:none;padding:4px 10px;}
.site-nav-inner::-webkit-scrollbar{display:none}
.site-nav-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#fff;text-decoration:none;font-weight:800;font-size:14px;padding:13px 15px;border-radius:12px;white-space:nowrap;transition:.2s ease;}
.site-nav-link:hover{background:rgba(255,255,255,.12);transform:translateY(-1px)}
.site-nav-link.active{background:var(--ms-gold);color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.16)}

.mobile-menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,.48);backdrop-filter:blur(3px);z-index:9999;visibility:hidden;opacity:0;transition:.25s ease;}
.mobile-menu-overlay.open{visibility:visible;opacity:1}
.mobile-menu-panel{width:min(88vw,430px);height:100%;background:#fff;box-shadow:15px 0 45px rgba(0,0,0,.2);transform:translateX(-105%);transition:.3s cubic-bezier(.2,.8,.2,1);overflow-y:auto;}
.mobile-menu-overlay.open .mobile-menu-panel{transform:translateX(0)}
.mobile-menu-header{position:sticky;top:0;background:#fff;z-index:2;padding:20px 18px;border-bottom:1px solid var(--ms-border);display:flex;align-items:center;justify-content:space-between;gap:12px;}
.mobile-brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;min-width:0}
.mobile-brand img{width:58px;height:58px;object-fit:contain;flex:none}
.mobile-brand strong{display:block;color:var(--ms-maroon);font-size:18px;line-height:1.3;font-weight:900}
.mobile-brand small{display:block;color:#b58105;font-size:11px;font-weight:800;margin-top:3px}
.mobile-close{border:0;background:#f3f4f6;width:42px;height:42px;border-radius:13px;font-size:22px;cursor:pointer;flex:none}
.mobile-menu-list{padding:16px 14px 28px;display:flex;flex-direction:column;gap:10px}
.mobile-menu-item{display:flex;align-items:center;gap:13px;min-height:68px;padding:12px 15px;border-radius:20px;background:#f5f6f7;color:#202124;text-decoration:none;font-size:18px;font-weight:900;transition:.2s ease;border:1px solid #eef0f2;}
.mobile-menu-item:hover{background:#eaf7ee;transform:translateX(3px)}
.mobile-menu-item.active{background:var(--ms-green);color:#fff;border-color:var(--ms-green);box-shadow:0 8px 20px rgba(21,128,61,.18)}
.mobile-menu-icon{width:38px;text-align:center;font-size:23px;flex:none}
.mobile-menu-arrow{margin-left:auto;font-size:12px;opacity:.45}
.mobile-menu-item.active .mobile-menu-arrow{opacity:.9}

.site-footer{background:var(--ms-green-deep);color:#fff;border-top:4px solid var(--ms-gold);margin-top:40px;padding:48px 0 80px}
.footer-container{width:min(1180px,92%);margin:auto}
.footer-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:42px}
.footer-brand{display:flex;align-items:center;gap:14px}
.footer-brand img{width:78px;height:78px;object-fit:contain;background:#fff;border-radius:18px;padding:4px}
.footer-brand h2{font-size:21px;line-height:1.35;margin:0;color:#ffd95a;font-weight:900}
.footer-brand p{margin:5px 0 0;color:#d1d5db;font-size:13px;font-weight:700}
.footer-text{margin:18px 0 0;color:#cbd5d1;line-height:1.8;font-size:14px;max-width:520px}
.site-footer h3{margin:0 0 18px;color:#ffd95a;font-size:19px;font-weight:900}
.footer-contact{display:flex;flex-direction:column;gap:14px;color:#d1d5db;font-size:14px}
.footer-contact a,.footer-contact div{display:flex;align-items:flex-start;gap:11px;color:inherit;text-decoration:none;line-height:1.6}
.footer-contact i{color:#7ee2a8;width:18px;text-align:center;margin-top:3px}
.footer-social{display:flex;gap:10px}
.footer-social a{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.1);color:#fff;text-decoration:none;font-size:18px;transition:.2s}
.footer-social a:hover{background:var(--ms-green);transform:translateY(-2px)}
.developer-card{margin-top:22px;padding:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);border-radius:16px}
.developer-card small,.developer-card strong,.developer-card span{display:block}
.developer-card small{color:#9ca3af}.developer-card strong{color:#ffd95a;margin-top:5px}.developer-card span{color:#cbd5e1;font-size:12px;margin-top:3px}
.footer-bottom{margin-top:35px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);text-align:center;color:#9ca3af;font-size:13px}
.mobile-bottom-nav{display:none}

/* New module pages */
.module-page{min-height:60vh;padding:36px 16px 70px}
.module-container{max-width:1180px;margin:0 auto}
.module-hero{background:linear-gradient(135deg,#0b5d2a,#15803d);border-radius:26px;padding:34px;color:#fff;box-shadow:0 14px 35px rgba(6,53,30,.14);position:relative;overflow:hidden}
.module-hero:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:-80px;top:-80px;background:rgba(255,255,255,.08)}
.module-hero h1{margin:0;font-size:clamp(28px,4vw,44px);font-weight:950;position:relative;z-index:1}.module-hero p{margin:10px 0 0;color:#e6f7ec;position:relative;z-index:1;line-height:1.7}
.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}
.module-card{background:#fff;border:1px solid var(--ms-border);border-radius:20px;padding:22px;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.module-icon{width:50px;height:50px;border-radius:15px;background:#eaf7ee;color:var(--ms-green);display:flex;align-items:center;justify-content:center;font-size:21px;margin-bottom:14px}
.module-card h2{font-size:19px;margin:0 0 8px;color:var(--ms-maroon);font-weight:900}.module-card p{margin:0;color:#667085;line-height:1.65;font-size:14px}
.module-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.module-search{flex:1;min-width:220px;padding:13px 15px;border:1px solid var(--ms-border);border-radius:14px;background:#fff;outline:none}.module-search:focus{border-color:var(--ms-green);box-shadow:0 0 0 4px rgba(21,128,61,.1)}
.module-btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:14px;padding:13px 18px;background:var(--ms-green);color:#fff;text-decoration:none;font-weight:800;cursor:pointer}.module-btn.gold{background:var(--ms-gold)}
.empty-state{text-align:center;padding:38px;background:#fff;border:1px dashed #cfd5d9;border-radius:20px;color:#667085;margin-top:22px}

@media(max-width:900px){
 .site-nav{display:none}.footer-grid{grid-template-columns:1fr}.mobile-bottom-nav{display:grid;position:fixed;left:0;right:0;bottom:0;z-index:900;background:#06351e;border-top:1px solid rgba(255,255,255,.12);grid-template-columns:repeat(5,1fr);padding:8px 5px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -8px 25px rgba(0,0,0,.15)}
 .mobile-bottom-nav a{color:#dbe8df;text-decoration:none;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:800;padding:5px 2px}.mobile-bottom-nav i{font-size:18px}.mobile-bottom-nav a.active{color:#ffd95a}
 .module-grid{grid-template-columns:1fr 1fr}.site-footer{padding-bottom:92px}
}
@media(max-width:560px){.module-grid{grid-template-columns:1fr}.module-page{padding:20px 12px 80px}.module-hero{padding:25px 20px;border-radius:20px}.mobile-menu-item{min-height:64px;font-size:17px}.mobile-brand strong{font-size:16px}.footer-brand h2{font-size:17px}.footer-brand img{width:64px;height:64px}}
