@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --theme-color: #0d9488;
    --theme-dark: #0f766e;
    --bg-soft: #f4f8f7;
}

* { box-sizing: border-box; }

body {
    font-family: 'Hind Siliguri', sans-serif;
    background: #e9edf1;
    margin: 0;
    color: #1f2937;
}

/* ---------- মোবাইল এপ শেল ---------- */
.app-shell {
    max-width: 430px;
    margin: 0 auto;
    background: var(--bg-soft);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
    padding-bottom: 78px;
}

/* ---------- টপ বার ---------- */
.top-bar {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-dark));
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.top-bar .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    color: #fff;
}
.top-bar .brand img { height: 30px; width: 30px; border-radius: 50%; object-fit: cover; background:#fff; }
.top-bar .icon-btn {
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
}

/* ---------- সাইড / টপ মেনু ড্রয়ার ---------- */
.side-drawer {
    position: fixed;
    top: 0; right: -300px;
    width: 280px; height: 100%;
    background: #fff;
    z-index: 200;
    transition: right 0.25s ease;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    overflow-y: auto;
}
.side-drawer.open { right: 0; }
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 190; display: none;
}
.drawer-overlay.open { display: block; }
.side-drawer .drawer-header {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-dark));
    color: #fff; padding: 20px 16px;
}
.side-drawer a.drawer-link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; color: #1f2937; text-decoration: none;
    border-bottom: 1px solid #f0f0f0; font-weight: 500;
}
.side-drawer a.drawer-link i { color: var(--theme-color); font-size: 18px; width: 20px; }
.side-drawer a.drawer-link:active { background: var(--bg-soft); }

/* ---------- হিরো ব্যানার ---------- */
.hero-banner {
    position: relative;
    height: 190px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.hero-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,148,136,0.40), rgba(15,118,110,0.60));
    z-index: 1;
}
.hero-banner-single {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.hero-banner-carousel, .hero-banner-carousel .carousel-inner, .hero-banner-carousel .carousel-item {
    position: absolute; inset: 0; height: 100%;
}
.hero-banner-carousel .carousel-item {
    background-size: cover; background-position: center;
}
.hero-banner .hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-banner h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.hero-banner h2 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.hero-banner p { font-size: 13px; margin: 0; opacity: 0.95; }

/* ---------- সার্ভিস কার্ড গ্রিড ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    margin-top: -30px;
    position: relative;
    z-index: 5;
}
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    text-decoration: none;
    color: #1f2937;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.15s ease;
}
.service-card:active { transform: scale(0.96); }
.service-card .icon-circle {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
    color: #fff;
}
.service-card .name { font-size: 12.5px; font-weight: 600; line-height: 1.3; }

/* ---------- সেকশন হেডার ---------- */
.section-title {
    padding: 16px 16px 8px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title a { font-size: 12.5px; color: var(--theme-color); text-decoration: none; font-weight: 600; }

/* ---------- বটম নেভিগেশন ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 50%; transform: translateX(-50%);
    max-width: 430px; width: 100%;
    background: #fff;
    display: flex;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}
.bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 10px 4px 8px;
    text-decoration: none;
    color: #8a93a3;
    font-size: 11px;
    font-weight: 600;
}
.bottom-nav a i { display: block; font-size: 19px; margin-bottom: 3px; }
.bottom-nav a.active { color: var(--theme-color); }

/* ---------- সাধারণ কার্ড/লিস্ট ---------- */
.content-pad { padding: 12px 16px; }
.entry-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #1f2937;
}
.entry-card img.thumb {
    width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
    background: var(--bg-soft);
}
.entry-card .thumb {
    width: 60px; height: 60px; border-radius: 10px; flex-shrink: 0; overflow: hidden;
}
.entry-card .thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.entry-card .title { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.entry-card .meta { font-size: 12px; color: #6b7280; }

.badge-cat {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--theme-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 3px 4px 3px 0;
    text-decoration: none;
}
.badge-cat.active { background: var(--theme-color); color: #fff; }

.btn-theme {
    background: var(--theme-color);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 11px;
    border-radius: 12px;
    width: 100%;
}
.btn-theme:hover { background: var(--theme-dark); color: #fff; }

.page-header {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-dark));
    color: #fff; padding: 16px; display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 40;
}
.page-header a { color: #fff; font-size: 20px; text-decoration: none; }
.page-header .t { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-header-icon-btn {
    background: none; border: none; color: #fff; font-size: 20px; padding: 0;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.module-search-input {
    flex: 1; border: none; border-radius: 10px; padding: 9px 14px; font-size: 14px;
    font-family: 'Hind Siliguri', sans-serif; background: rgba(255,255,255,0.95); color: #1f2937;
}
.module-search-input:focus { outline: none; box-shadow: 0 0 0 2px rgba(255,255,255,0.5); }

.status-pill { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }

.empty-state { text-align: center; padding: 40px 20px; color: #9ca3af; }
.empty-state i { font-size: 44px; display: block; margin-bottom: 10px; }

.otp-input { letter-spacing: 10px; text-align: center; font-size: 22px; font-weight: 700; }

.auth-wrap { min-height: 100vh; display: flex; align-items: center; padding: 30px 24px; }
.auth-wrap .logo-circle {
    width: 70px; height: 70px; border-radius: 50%; background: var(--theme-color);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; margin: 0 auto 16px;
}

/* ---------- এডমিন প্যানেল বেসিক ---------- */
.admin-body { background: #f1f5f9; font-family: 'Hind Siliguri', sans-serif; }
.admin-sidebar {
    background: #0f172a; min-height: 100vh; width: 240px; position: fixed; top: 0; left: 0; z-index: 100;
    overflow-y: auto;
}
.admin-sidebar .brand { color: #fff; padding: 18px 16px; font-weight: 700; border-bottom: 1px solid #1e293b; }
.admin-sidebar a {
    display: flex; align-items: center; gap: 10px; color: #cbd5e1; padding: 11px 16px; text-decoration: none; font-size: 14px;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--theme-color); color: #fff; }
.admin-main { margin-left: 240px; padding: 20px; }
@media (max-width: 768px) {
    .admin-sidebar { left: -240px; transition: left 0.2s; }
    .admin-sidebar.open { left: 0; }
    .admin-main { margin-left: 0; }
}
.admin-topbar { background: #fff; padding: 12px 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); display:flex; align-items:center; justify-content: space-between; margin-bottom: 20px; border-radius: 10px;}
.stat-card { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.stat-card .num { font-size: 26px; font-weight: 700; }
.stat-card .lbl { color: #6b7280; font-size: 13px; }
.card-admin { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }

/* ---------- ফর্ম সাবমিট লোডিং ওভারলে ---------- */
.global-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 99999;
}
.global-loading-overlay.show { display: flex; }
.global-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--theme-color);
    border-width: 0.35em;
}
.global-loading-overlay .loading-text {
    margin-top: 14px;
    font-weight: 600;
    color: var(--theme-color, #0d9488);
    font-size: 14px;
    font-family: 'Hind Siliguri', sans-serif;
}


/*delet popup notification*/
.custom-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999999;

    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.custom-confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-confirm-box {
    width: 380px;
    max-width: calc(100% - 30px);

    background: #ffffff;
    border-radius: 20px;

    padding: 30px 25px 25px;

    text-align: center;

    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.30);

    transform: scale(0.85) translateY(20px);
    transition: all 0.25s ease;
}

.custom-confirm-overlay.show .custom-confirm-box {
    transform: scale(1) translateY(0);
}

.custom-confirm-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #fff1f2;
    color: #dc3545;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
}

.custom-confirm-title {
    margin: 0 0 8px;

    font-size: 21px;
    font-weight: 700;

    color: #212529;
}

.custom-confirm-message {
    margin: 0 0 25px;

    font-size: 14px;
    line-height: 1.6;

    color: #6c757d;
}

.custom-confirm-buttons {
    display: flex;
    gap: 10px;
}

.custom-confirm-buttons button {
    flex: 1;

    border: none;
    border-radius: 10px;

    padding: 11px 15px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.custom-confirm-cancel {
    background: #f1f3f5;
    color: #495057;
}

.custom-confirm-cancel:hover {
    background: #e9ecef;
}

.custom-confirm-ok {
    background: #dc3545;
    color: #ffffff;
}

.custom-confirm-ok:hover {
    background: #bb2d3b;
}

@media (max-width: 480px) {

    .custom-confirm-box {
        width: calc(100% - 30px);
        padding: 25px 20px 20px;
    }

}