/* =====================================================================
   1. DESIGN TOKENS  — rong / radius / shadow shob ekhane, ek jaygay bodlalei shob bodlabe
   ===================================================================== */
:root {
    --bg: #f4f6fb;
    --card: #ffffff;
    --border: #e5e9f2;
    --text: #1f2a44;
    --muted: #6b7a99;

    --primary: #4361ee;
    --primary-dark: #3149c9;
    --primary-soft: #eef1ff;

    --green: #12a150;
    --green-bg: #e6f7ee;
    --amber: #b7791f;
    --amber-bg: #fdf3dc;
    --red: #d92d20;
    --red-bg: #fdeaea;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 6px 24px rgba(31, 42, 68, .06);
    --ring: 0 0 0 3px rgba(67, 97, 238, .18);
}

/* =====================================================================
   2. BASE
   ===================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
    font-family: -apple-system, system-ui, "Segoe UI", "Liberation Sans", sans-serif;
}

/* =====================================================================
   3. UTILITIES
   ===================================================================== */
.flex {
    display: flex;
}

.center {
    justify-content: center;
}

.medel {
    align-items: center;
}

.around {
    justify-content: space-around;
}

.beet {
    justify-content: space-between;
}

.column {
    flex-direction: column;
}

.gap {
    gap: 10px;
}

.pointer {
    cursor: pointer;
}

.padding {
    padding: 10px;
}

.w100 {
    width: 100%;
}

.w50 {
    width: 50%;
}

.overflow {
    overflow: auto;
    width: 100%;
}

.textCenter {
    text-align: center;
}

.opacity07 {
    opacity: 0.7;
}

.icon-lg {
    font-size: larger;
}

.mark {
    background-color: yellow;
}

.null {
    height: 1px;
    width: 1px;
    border: none;
    background-color: transparent;
}

.fullPage {
    height: 100vh;
    width: 100%;
}

.border-right {
    border-right: 1px solid #ccc;
    padding: 0 10px;
}

/* =====================================================================
   4. SHARED COMPONENTS  (shob page ei gulo-i use korbe — notun kore likhte hobe na)
   ===================================================================== */

/* ---- Button: <button> ba .btn = default (ghost). Primary er jonno .btn-primary ---- */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: background .2s, border-color .2s, color .2s, transform .1s, box-shadow .2s;
}

button:hover,
button:focus,
.btn:hover,
.btn:focus {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary);
}

button:focus,
.btn:focus {
    box-shadow: var(--ring);
}

button:active,
.btn:active {
    background: #dfe5ff;
    box-shadow: none;
    transform: translateY(1px);
}

button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(67, 97, 238, .25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: transparent;
    color: #fff;
}

.btn-primary:active {
    background: #2638a8;
}

/* ---- Input / select ---- */
input,
select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
}

input:focus,
select:focus {
    border: 1px solid var(--primary);
    box-shadow: var(--ring);
    outline: none;
}

/* ---- Search box (icon soho) ---- */
.search {
    position: relative;
}

.search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
    pointer-events: none;
}

.search input {
    width: 280px;
    max-width: 100%;
    margin: 0;
    padding-left: 34px;
}

/* ---- Card ---- */
.card {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card--pad {
    padding: 20px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

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

/* ---- Page wrapper + header ---- */
.page {
    padding: 20px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

.page--narrow {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius);
}


.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title h2 {
    font-size: 20px;
    font-weight: 700;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

/* ---- Badge (role, count...) ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}

/* ---- Status pill: active / inactive / blocked  (.ststus = purono class, compat) ---- */
.status,
.ststus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin: 5px;
}

.status::before,
.ststus::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status--active,
.ststus.active {
    color: var(--green);
    background: var(--green-bg);
}

.status--inactive,
.ststus.inactive {
    color: var(--amber);
    background: var(--amber-bg);
}

.status--blocked,
.ststus.blocked {
    color: var(--red);
    background: var(--red-bg);
}

/* ---- Avatar ---- */
.avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--border);
    background: var(--primary-soft);
}

.avatar--lg {
    width: 96px;
    height: 96px;
    border-width: 4px;
    box-shadow: 0 4px 14px rgba(31, 42, 68, .18);
}

.avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.avatar--lg.avatar--fallback {
    font-size: 36px;
}

/* ---- User cell (avatar + name) ---- */


.user-name {
    font-weight: 700;
    font-size: 15px;
}

.user-sub {
    margin-top: 2px;
    color: var(--muted);
}

/* ---- Key / Value: default = label upore value niche, .kv--row = label bame value dane ---- */
.kv {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.4;
}

.kv>span:first-child {
    color: var(--muted);
    font-size: 12px;
}

.kv b {
    min-width: 0;
    font-weight: 500;
    overflow-wrap: break-word;
    /* word-break na — table column soru hoy na */
}

.kv a {
    color: inherit;
    text-decoration: none;
}

.kv a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.kv--row {
    flex-direction: row;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.kv--row:last-child {
    border-bottom: 0;
}

.kv--row>span:first-child {
    min-width: 84px;
    flex-shrink: 0;
    font-size: inherit;
}

/* ---- Icon + kv row (info card) ---- */
.info-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-item .kv b {
    font-weight: 600;
}

.icon-box {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 14px;
}

/* ---- Empty state ---- */
.empty {
    text-align: center;
    padding: 48px 20px;
}

.empty i {
    font-size: 40px;
    color: var(--muted);
    margin-bottom: 12px;
}

.empty h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.empty p {
    color: var(--muted);
}

/* ---- Table (shob table er default) ---- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th {
    padding: 14px 16px;
    background: #f8faff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

table tbody tr:last-child td {
    border-bottom: 0;
}

table tbody tr:hover {
    background: #fafbff;
}

/* list-style table: lomba row, mobile e card hoye jay (td te data-label dite hobe) */
.table--list {
    min-width: 900px;
}

.table--list td {
    vertical-align: top;
}
/* ---- Stepper (wizard er upore step gulo) ---- */
.stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 24px;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 96px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.stepper-dot {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    font-weight: 700;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.stepper-dot i { display: none; }

.stepper-line {
    flex: 1;
    max-width: 120px;
    height: 2px;
    margin-top: 17px;
    background: var(--border);
    transition: background .2s;
}

.stepper-line.done { background: var(--primary); }

.stepper-item.active { color: var(--primary); }

.stepper-item.active .stepper-dot {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--ring);
}

.stepper-item.done { color: var(--text); }

.stepper-item.done .stepper-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.stepper-item.done .stepper-dot i { display: inline; }
.stepper-item.done .stepper-dot span { display: none; }

/* ---- Wizard step: shudhu .active ta dekhabe ---- */
.wizard-step { display: none; }
.wizard-step.active { display: block; }
/* ============================================================ 
User account edit style
===================================================== */
/* ---- Stack (card gulo upor-niche) ---- */
.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---- Alert ---- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    line-height: 1.5;
}

.alert i {
    margin-top: 3px;
}

.alert--success {
    background: var(--green-bg);
    color: var(--green);
}

.alert--error {
    background: var(--red-bg);
    color: var(--red);
}

/* ---- Form ---- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.field input,
.field select {
    margin: 0;
}

.hint {
    font-size: 12px;
    color: var(--muted);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}


/* ---- Sidebar dropdown: <div class="sidebtn"><main>Title</main><subbtn>Item</subbtn>...</div> ----
   (ager Sidebar block muche ei-ta boshan) */
.sidebtn {
    padding: 6px 12px;
}

.sidebtn+.sidebtn {
    border-top: 1px solid var(--border);
}

/* Dropdown title (click korle subbtn gulo khole/bondho hoy) */
.sidebtn main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background .2s, color .2s;
}

.sidebtn main:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Arrow */
.sidebtn main::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s, margin .2s;
}

.sidebtn.open main::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

/* Menu item — default e lukano, .open hole dekhabe */
.sidebtn subbtn {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 24px;
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background .2s, color .2s;
}

.sidebtn.open subbtn {
    display: flex;
    animation: sideSlide .18s ease;
}

.sidebtn.open subbtn:last-child {
    margin-bottom: 6px;
}

.sidebtn subbtn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Cholte thaka page: <subbtn class="active"> */
.sidebtn subbtn.active,
.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--primary);
}

/* Optional icon: <subbtn><i class="fa-solid fa-user"></i> Login Account</subbtn> */
.sidebtn subbtn i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

@keyframes sideSlide {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* =====================================================================
   5. APP LAYOUT / LEGACY  (age theke ache — ager moto)
   ===================================================================== */
.box {
    height: auto;
    width: auto;
    background-color: #fff;
    padding: 20px;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    border-radius: 10px;
}

.loginBox {
    width: 600px;
    height: 400px;
}

.loginIcon {
    height: 100px;
}

.loginFrom {
    margin: 20px;
}

.nav {
    padding: 10px;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nahidImg {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: none;
}

.account {
    position: absolute;
    top: 80px;
    right: 10px;
    width: 200px;
    padding: 10px;
    display: none;
    background-color: #d8efffd2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    border: 1px solid #ccc;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.account.show {
    display: block;
}

.abtn {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px dotted #ccc;
}

.abtn:last-child {
    border-bottom: none;
}

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

.sideNav {
    width: 300px;
    height: 100vh;
    border-right: 1px solid #ccc;
    position: sticky;
    top: 0;
}

.mainContent {
    width: calc(100% - 300px);
}

.error {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    padding: 10px;
    color: red;
    text-align: center;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}

.iconBtn {
    background-color: transparent;
    border: 1px solid #000;
    color: #000;
}

.navImg,
img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.navImgBox {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    height: 80px;
}

.profile-photo-account-box {
    height: 300px;
    width: 300px;
    border: 1px solid #ccc;
    padding: 5px;
}

#toast-container>.toast {
    opacity: 1;
}

.fa-triangle-exclamation {
    font-size: 200px;
    color: red;
}

.back_icon {
    border: 1px solid #6d7eff;
    border-radius: 100px;
    padding: 10px;
    cursor: pointer;
}

.test {
    background-color: red;
    border: 4px solid #000;
}

.tabBtn {
    background-color: transparent;
    border-bottom: 1px solid var(--primary);
    padding: 5px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabBtn:hover {
    background-color: var(--primary);
    color: #fff;
}

.tabBtn.active {
    background-color: #4361ee0b;
    color: var(--primary);
}

.printModiul {
    display: none;
}



/* ---- Tabs (<button class="tab active">) ---- */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab {
    padding: 10px 18px;
    margin-bottom: -1px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: none;
    color: var(--muted);
    font-size: 14px;
    box-shadow: none;
}

.tab:hover,
.tab:focus {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: transparent;
    box-shadow: none;
}

.tab:focus-visible {
    box-shadow: var(--ring);
}

.tab:active {
    background: #dfe5ff;
    transform: none;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.inputBox {
    border: 1px solid #8a98ff;
    padding: 10px;
    border-radius: 10px;
    margin: 5px;
}

.inputBox label {
    font-size: 14px;
    font-weight: 600;
    color: #8a98ff;
}

.inputBox .title {
    font-size: 14px;
    font-weight: 600;
    color: #8a98ff;
}

.inputBox input {
    border: 1px solid #8a98ff5d;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    margin: 5px;
}

/* ---- Badge: neutral (Sub branch etc.) ---- */
.badge--gray {
    background: #f1f3f8;
    color: var(--muted);
}


/* =====================================================================
   6. PAGE-SPECIFIC (shudhu je-tuku shared e nai)
   ===================================================================== */

/* Account Info (account/user/<id>) — profile card */
.profile {
    margin-bottom: 18px;
}

.profile-cover {
    height: 170px;
    background: linear-gradient(120deg, #b9c6ff, #8a98ff);
    background-image:url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSoqysaEnNlowocNEyPEJ8YiuhS3rt4xo2BNpxTzwSEPg&s=10');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.profile-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 18px;
    padding: 0 24px 22px;
    margin-top: -48px;
    z-index: 10;
  
}

.profile-id {
    flex: 1;
    min-width: 200px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.profile-name-bn {
    margin-top: 2px;
    font-size: 15px;
    color: rgb(255, 180, 180);
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* =====================================================================
   7. LOADING BAR
   ===================================================================== */
#top-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    z-index: 999999;
    animation: topLoading 1.2s infinite ease-in-out;
}

@keyframes topLoading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* =====================================================================
   8. RESPONSIVE  (screen only — print e trigger hobe na)
   ===================================================================== */
@media screen and (max-width: 768px) {
    .page {
        padding: 12px;
    }

    .page-actions,
    .search,
    .search input {
        width: 100%;
    }

    .profile-body {
        padding: 0 16px 18px;
    }

    .table--list {
        min-width: 0;
    }

    .table--list thead {
        display: none;
    }

    .table--list,
    .table--list tbody,
    .table--list tr,
    .table--list td {
        display: block;
        width: 100%;
    }

    .table--list tbody tr {
        padding: 6px 0;
        border-bottom: 8px solid var(--bg);
    }

    .table--list tbody tr:last-child {
        border-bottom: 0;
    }

    .table--list td {
        padding: 8px 16px;
        border: 0;
    }

    .table--list td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--muted);
    }
}


.field input:disabled {
    background: var(--bg);
    color: var(--muted);
    cursor: not-allowed;
}


































/* =====================================================================
   9. PRINT
   ===================================================================== */
@media print {
    body * {
        visibility: hidden;
    }

    #content,
    #content * {
        visibility: visible;
    }

    #content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .printModiul {
        display: block;
    }

    button,
    .noPrint {
        display: none !important;
    }

    .page {
        max-width: none;
        padding: 0;
        background: #fff;
    }

    .overflow {
        overflow: visible;
    }

    .card {
        border: 1px solid #000;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        break-inside: avoid;
    }

    table {
        border: 1px solid #000;
        font-size: 12px;
    }

    table th {
        padding: 8px;
        background: #eee !important;
        color: #000;
        border: 1px solid #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    table td {
        padding: 7px 8px;
        border: 1px solid #000 !important;
    }

    table tbody tr:hover {
        background: transparent;
    }

    .table--list {
        min-width: 0;
    }

    .table--list tbody tr {
        break-inside: avoid;
    }

    .badge,
    .status,
    .ststus {
        padding: 0;
        border-radius: 0;
        background: none !important;
        color: #000 !important;
    }

    .status::before,
    .ststus::before,
    .icon-box,
    .profile-cover {
        display: none;
    }

    .profile-body {
        margin-top: 0;
        padding-top: 18px;
    }
}