﻿/* =========================================================
   GLOBAL RESET (safe)
========================================================= */


/* =========================================================
   MODERN LOGIN PAGE - MECHSERA
  
========================================================= */

html, body {
    height: 100%;
    margin: 0;
}

body {
    background: #edf4f7;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0d5cab, #0a4f96, #0b67c2);
    }

/* full page */
.login-page-modern {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 20px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(47, 183, 200, 0.18) 0%, rgba(47, 183, 200, 0) 28%), radial-gradient(circle at bottom right, rgba(28, 120, 134, 0.15) 0%, rgba(28, 120, 134, 0) 32%), linear-gradient(135deg, #eef7f8 0%, #2c6471 45%, #f3f8fa 100%);
}

.login-options-row {
    display: flex;
    justify-content: space-between; /* pushes items to left & right */
    align-items: center;
    width: 100%;
    margin-top: 10px;
}
/* background shapes */
.login-bg-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.login-bg-shape-1 {
    width: 240px;
    height: 240px;
    top: -70px;
    left: -80px;
    background: linear-gradient(135deg, rgba(10, 121, 142, 0.30), rgba(32, 187, 198, 0.14));
}

.login-bg-shape-2 {
    width: 190px;
    height: 190px;
    right: -50px;
    bottom: -45px;
    background: linear-gradient(135deg, rgba(46, 184, 173, 0.22), rgba(12, 96, 116, 0.12));
}

.login-bg-shape-3 {
    width: 80px;
    height: 80px;
    top: 90px;
    right: 150px;
    background: rgba(75, 192, 201, 0.16);
}

/* main card */
.login-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255,255,255,0.80);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(18, 60, 70, 0.10), 0 8px 22px rgba(18, 60, 70, 0.06);
    backdrop-filter: blur(10px);
}

.login-left-bg-image {
    position: absolute;
    inset: 0;
    background: url("/images/Login_Bg.jpg") center center / cover no-repeat;
    opacity: 0.35; /* image visibility */
    z-index: 0;
}

.login-left-content,
.login-dot-grid {
    position: relative;
    z-index: 2;
}

.login-left-panel::before,
.login-left-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.09);
}

.login-left-panel::before {
    width: 170px;
    height: 170px;
    top: -38px;
    left: -38px;
}

.login-left-panel::after {
    width: 220px;
    height: 220px;
    right: -90px;
    top: -70px;
}



.login-brand-logo {
    width: 180px; /* control size here */
    height: auto;
    object-fit: contain;
}
.brand-wrapper {
    text-align: center;
}

.login-brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-left-title {
    font-size: 48px;
    line-height: 1.12;
    font-weight: 700;
    margin: 0 0 30px;
    color: #ffffff;
}

.login-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .login-feature-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 15px;
        color: rgba(255,255,255,0.95);
        font-size: 16px;
        font-weight: 500;
    }

.feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    font-size: 13px;
    flex: 0 0 24px;
}

/* dotted squares */
.login-dot-grid {
    position: absolute;
    width: 74px;
    height: 74px;
    background-image: radial-gradient(rgba(255,255,255,0.34) 1.8px, transparent 1.8px);
    background-size: 10px 10px;
    z-index: 1;
}

.login-dot-grid-top {
    top: 92px;
    left: 46px;
}

.login-dot-grid-bottom {
    bottom: 52px;
    right: 42px;
    opacity: 0.55;
}

/* right section */
.login-right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: rgba(248, 251, 252, 0.92);
}

.login-form-wrap {
    width: 100%;
    max-width: 390px;
}

.login-form-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5d6c75;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 22px;
}

.login-form-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.login-form-title {
    margin: 0;
    font-size: 36px;
    font-weight: 500;
    color: #173742;
}

.login-form-subtitle {
    margin: 10px 0 28px;
    color: #6d8189;
    font-size: 14px;
}

/* form */
.login-form-modern .form-group-modern {
    margin-bottom: 20px;
}

.form-label-modern {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64767c;
}

.login-input-modern {
    height: 52px;
    border-radius: 12px;
    border: 1px solid #d7e4e8;
    background: #ffffff;
    box-shadow: none !important;
    padding: 12px 16px;
    font-size: 15px;
    color: #183841;
    transition: all 0.25s ease;
}

    .login-input-modern::placeholder {
        color: #9aabb1;
    }

    .login-input-modern:focus {
        border-color: #22aab5;
        box-shadow: 0 0 0 4px rgba(34, 170, 181, 0.10) !important;
    }

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #6d8189;
    cursor: pointer;
}

.login-forgot-link {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #118ea5;
}

    .login-forgot-link:hover {
        color: #0d7385;
    }

/* button */
.login-btn-modern {
    MARGIN-TOP: 30PX;
    height: 54px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #0c7a93 0%, #1ea7b5 100%);
    box-shadow: 0 10px 20px rgba(19, 137, 151, 0.20);
    transition: all 0.25s ease;
}

    .login-btn-modern:hover {
        transform: translateY(-1px);
        background: linear-gradient(90deg, #0b6f85 0%, #1a98a5 100%);
        color: #fff;
    }

/* validation spacing */
.text-danger.small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

/* responsive */
@media (max-width: 991.98px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .login-left-panel {
        min-height: 320px;
    }

    .login-left-title {
        font-size: 36px;
    }
}

@media (max-width: 575.98px) {
    .login-page-modern {
        padding: 18px 12px;
    }

    .login-left-panel,
    .login-right-panel {
        padding: 30px 22px;
    }

    .login-left-title {
        font-size: 30px;
    }

    .login-form-title {
        font-size: 30px;
    }

    
}


/* =========================================
   BUBBLE ANIMATION
========================================= */
.bubble-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    animation: floatUp linear infinite;
}

    /* different bubbles */
    .bubble:nth-child(1) {
        left: 10%;
        width: 40px;
        height: 40px;
        animation-duration: 12s;
    }

    .bubble:nth-child(2) {
        left: 25%;
        width: 20px;
        height: 20px;
        animation-duration: 10s;
    }

    .bubble:nth-child(3) {
        left: 40%;
        width: 60px;
        height: 60px;
        animation-duration: 18s;
    }

    .bubble:nth-child(4) {
        left: 55%;
        width: 25px;
        height: 25px;
        animation-duration: 14s;
    }

    .bubble:nth-child(5) {
        left: 70%;
        width: 50px;
        height: 50px;
        animation-duration: 20s;
    }

    .bubble:nth-child(6) {
        left: 85%;
        width: 18px;
        height: 18px;
        animation-duration: 11s;
    }

    .bubble:nth-child(7) {
        left: 95%;
        width: 35px;
        height: 35px;
        animation-duration: 16s;
    }

/* animation */
@keyframes floatUp {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translate(20px, -50vh);
    }

    100% {
        transform: translate(-20px, -110vh);
        opacity: 0;
    }
}

/* =========================================
   LEFT PANEL
========================================= */
.login-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #1aa6b7, #1c7c8c);
    position: relative;
    color: white;
    padding: 30px;
}

.login-left-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
}


.login-left-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical center */
    align-items: center; /* horizontal center */
    text-align: center;
}

.logo-wrapper {
    margin-bottom: 12px;
}

/* =========================================================
   AUTH PAGE BACKGROUND
========================================================= */
.auth-page {
    height: 100vh;
    background: url("/images/Login_Bg.jpg") center / cover no-repeat;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* =========================================================
   AUTH CONTAINER
========================================================= */
.auth-container {
    height: 100vh;
    position: relative;
    z-index: 2;
}

/* =========================================================
   BRAND POSITION (DESKTOP)
========================================================= */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 30px 15px;
   
}

.auth-brand-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-brand.auth-brand-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-logo {
    width: 90px;
    height: auto;
    display: block;
}

.auth-brand-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1.1;
}

.auth-card.auth-card-center {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   FORM
========================================================= */
.auth-title {
    margin-bottom: 16px;
    font-weight: 600;
}

.auth-input {
    height: 44px;
}

/* =========================================================
   BUTTON
========================================================= */
.auth-btn {
    margin-top: 20px;
    height: 44px;
    background: #389dd9;
    color: #fff;
    font-weight: 600;
    border: none;
}

    .auth-btn:hover,
    .auth-btn:focus,
    .auth-btn:active {
        background: #389dd9;
        color: #fff;
    }

/* =========================================================
   RESPONSIVE (MOBILE + TABLET)
========================================================= */
@media (max-width: 992px) {
    body.auth-page {
        overflow: auto;
    }

    .auth-container {
        height: auto;
        min-height: 100vh;
        padding: 28px 16px 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .auth-brand-wrapper {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 0 18px;
        display: flex;
        justify-content: center;
    }

    .auth-logo {
        width: 70px;
        height: 70px;
    }

    .auth-brand-title {
        font-size: 26px;
        letter-spacing: 0.6px;
    }

    .auth-brand-subtitle {
        font-size: 14px;
    }

    .auth-card-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 420px;
    }
}

/* =========================================================
   ADMIN DASHBOARD LAYOUT
========================================================= */

:root {
    --admin-topbar-h: 56px;
    --admin-sidebar-w: 260px;
    --admin-sidebar-collapsed-w: 0px;
    --admin-transition: all 0.28s ease;
}
body.admin-shell {
    margin-bottom: 0 !important;
    background: #f6f7fb;
    overflow-x: hidden;
}

/* Topbar */
.admin-topbar {
    height: var(--admin-topbar-h);
    background: #097693;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000;
}

.admin-topbar-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    user-select: none;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-menu-btn {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

    .admin-menu-btn:hover {
        background: rgba(255,255,255,0.12);
    }

/* Layout */
.admin-layout {
    min-height: calc(100vh - var(--admin-topbar-h));
    padding-top: var(--admin-topbar-h);
}

.admin-layout,
.admin-main,
.admin-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Optional brand area */
.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 74px;
    padding: 10px 8px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #d9eaef;
    margin-bottom: 14px;
    overflow: hidden;
}

    .admin-brand img {
        width: 64px;
        height: 94px;
        object-fit: contain;
        display: block;
        transform: scale(1.35);
        transform-origin: center;
        flex-shrink: 0;
    }

.admin-brand-text {
    min-width: 0;
}

.admin-brand-title {
    margin-left: 5px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: black;
    white-space: nowrap;
}

.admin-brand-subtitle {
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
}

/* Main */
.admin-main {
    margin-left: var(--admin-sidebar-w);
    width: calc(100% - var(--admin-sidebar-w));
    min-height: calc(100vh - var(--admin-topbar-h));
    padding: 26px 28px;
    transition: var(--admin-transition);
}
.admin-content {
    width: 100%;
    max-width: none;
}

/* Sidebar backdrop */
.admin-sidebar-backdrop {
    display: none;
}
/* Nav links */
.admin-nav-link,
.admin-nav-dropbtn,
.admin-subnav-link,
.admin-sub-dropbtn,
.admin-direct-link {
    width: 100%;
    text-decoration: none;
    transition: var(--admin-transition);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: #111827;
    font-weight: 600;
    margin-bottom: 4px;
}

    .admin-nav-link:hover {
        background: #f2f6ff;
    }

    .admin-nav-link.active {
        background: #fefeff;
        color: #111827;
    }


.admin-nav-dropbtn {
    text-align: left;
    border: none;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    color: #111827;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 4px;
}

    .admin-nav-dropbtn:hover {
        background: #f2f6ff;
    }

    .admin-nav-dropbtn.is-open {
        background: #f2f6ff;
    }
.admin-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-nav-icon {
    width: 20px;
    min-width: 20px;
    text-align: center;
    font-size: 17px;
    line-height: 1;
    flex-shrink: 0;
}

.admin-nav-text {
    white-space: nowrap;
}

.admin-chevron {
    transition: transform 0.2s ease;
    font-size: 18px;
    opacity: 0.7;
    display: inline-block;
    line-height: 1;
}
.admin-nav-dropbtn.is-open .admin-chevron,
.admin-sub-dropbtn.is-open .admin-chevron {
    transform: rotate(90deg);
}

.admin-subnav {
    display: none;
    padding-left: 16px;
    margin-top: 2px;
    margin-bottom: 10px;
}

    .admin-subnav.is-open {
        display: block;
    }


.admin-subnav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #111827;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

    .admin-subnav-link:hover {
        color: #389dd9;
        background: #f2f6ff;
    }

    .admin-subnav-link.active {
        background: #eaf3ff;
        color: #126a93;
    }

.admin-sub-dropbtn {
    text-align: left;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 10px;
    color: #111827;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 4px;
}
    .admin-sub-dropbtn:hover {
        background: #f2f6ff;
        color: #389dd9;
    }

.admin-subnav-inner {
    display: none;
    padding-left: 14px;
    margin-top: 2px;
}

    .admin-subnav-inner.is-open {
        display: block;
    }
.admin-direct-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    color: #111827;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

    .admin-direct-link:hover {
        background: #f2f6ff;
        color: #389dd9;
    }

    .admin-direct-link.active {
        background: #eaf3ff;
        color: #126a93;
    }
/* =========================================================
   ADMIN DASHBOARD LAYOUT
========================================================= */

:root {
    --admin-topbar-h: 56px;
    --admin-sidebar-w: 260px;
    --admin-sidebar-collapsed-w: 74px;
    --admin-transition: all 0.28s ease;
}

body.admin-shell {
    margin-bottom: 0 !important;
    background: #f6f7fb;
    overflow-x: hidden;
}

/* Topbar */
.admin-topbar {
    height: var(--admin-topbar-h);
    background: #097693;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-topbar-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    user-select: none;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-menu-btn {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

    .admin-menu-btn:hover {
        background: rgba(255,255,255,0.12);
    }

/* Layout */
.admin-layout {
    min-height: calc(100vh - var(--admin-topbar-h));
    padding-top: var(--admin-topbar-h);
}

.admin-layout,
.admin-main,
.admin-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Sidebar */
.admin-sidebar {
    position: fixed;
    top: var(--admin-topbar-h);
    left: 0;
    bottom: 0;
    width: var(--admin-sidebar-w);
    background: #cfdde5;
    border-right: 1px solid #d6e0f5;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.08);
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--admin-transition);
    z-index: 1500;
}

/* Optional brand area */
.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 74px;
    padding: 10px 8px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #d9eaef;
    margin-bottom: 14px;
    overflow: hidden;
}

    .admin-brand img {
        width: 64px;
        height: 94px;
        object-fit: contain;
        display: block;
        transform: scale(1.35);
        transform-origin: center;
        flex-shrink: 0;
    }

.admin-brand-text {
    min-width: 0;
}

.admin-brand-title {
    margin-left: 5px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: black;
    white-space: nowrap;
}

.admin-brand-subtitle {
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
}

/* Main */
.admin-main {
    margin-left: var(--admin-sidebar-w);
    width: calc(100% - var(--admin-sidebar-w));
    min-height: calc(100vh - var(--admin-topbar-h));
    padding: 26px 28px;
    transition: var(--admin-transition);
}

.admin-content {
    width: 100%;
    max-width: none;
}

/* Sidebar backdrop */
.admin-sidebar-backdrop {
    display: none;
}

/* Nav links */
.admin-nav-link,
.admin-nav-dropbtn,
.admin-subnav-link,
.admin-sub-dropbtn,
.admin-direct-link {
    width: 100%;
    text-decoration: none;
    transition: var(--admin-transition);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: #111827;
    font-weight: 600;
    margin-bottom: 4px;
}

    .admin-nav-link:hover {
        background: #f2f6ff;
    }

    .admin-nav-link.active {
        background:white;
        color: #111827;
    }

.admin-nav-dropbtn {
    text-align: left;
    border: none;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    color: #111827;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 4px;
}

    .admin-nav-dropbtn:hover {
        background: #f2f6ff;
    }

    .admin-nav-dropbtn.is-open {
        background: #f2f6ff;
    }

.admin-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-nav-icon {
    width: 20px;
    min-width: 20px;
    text-align: center;
    font-size: 17px;
    line-height: 1;
    flex-shrink: 0;
}

.admin-nav-text {
    white-space: nowrap;
}

.admin-chevron {
    transition: transform 0.2s ease;
    font-size: 18px;
    opacity: 0.7;
    display: inline-block;
    line-height: 1;
}

.admin-nav-dropbtn.is-open .admin-chevron,
.admin-sub-dropbtn.is-open .admin-chevron {
    transform: rotate(90deg);
}

.admin-subnav {
    display: none;
    padding-left: 16px;
    margin-top: 2px;
    margin-bottom: 10px;
}

    .admin-subnav.is-open {
        display: block;
    }

.admin-subnav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #111827;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

    .admin-subnav-link:hover {
        color: #389dd9;
        background: #f2f6ff;
    }

    .admin-subnav-link.active {
        background: #eaf3ff;
        color: #126a93;
    }

.admin-sub-dropbtn {
    text-align: left;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 10px;
    color: #111827;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 4px;
}

    .admin-sub-dropbtn:hover {
        background: #f2f6ff;
        color: #389dd9;
    }

.admin-subnav-inner {
    display: none;
    padding-left: 14px;
    margin-top: 2px;
}

    .admin-subnav-inner.is-open {
        display: block;
    }

.admin-direct-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    color: #111827;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

    .admin-direct-link:hover {
        background: #f2f6ff;
        color: #389dd9;
    }

    .admin-direct-link.active {
        background: #eaf3ff;
        color: #126a93;
    }

/* =========================================================
   DESKTOP COLLAPSED SIDEBAR
========================================================= */
/* =========================================================
   DESKTOP + MOBILE SIDEBAR TOGGLE
========================================================= */
@media (min-width: 992px) {
    body.admin-shell .admin-sidebar {
        width: var(--admin-sidebar-w);
        padding: 14px;
        border-right: 1px solid #d6e0f5;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.08);
        overflow-y: auto;
        overflow-x: hidden;
    }

    body.admin-shell .admin-main {
        margin-left: var(--admin-sidebar-w);
        width: calc(100% - var(--admin-sidebar-w));
    }

    body.admin-shell.sidebar-collapsed .admin-sidebar {
        width: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        border-right: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    body.admin-shell.sidebar-collapsed .admin-brand,
    body.admin-shell.sidebar-collapsed .admin-nav {
        display: none !important;
    }

    body.admin-shell.sidebar-collapsed .admin-main {
        margin-left: 0 !important;
        width: 100% !important;
    }
}
/* =========================================================
   MOBILE
========================================================= */
/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: var(--admin-sidebar-w);
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
        padding: 16px;
    }

    body.admin-shell:not(.sidebar-collapsed) .admin-sidebar {
        transform: translateX(0);
    }

    body.admin-shell:not(.sidebar-collapsed) .admin-sidebar-backdrop {
        display: block;
        position: fixed;
        top: var(--admin-topbar-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.32);
        z-index: 1400;
    }

    .admin-page-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-input {
        min-width: 180px;
        width: 100%;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
     Page header 
========================================================= */

.admin-page-header {
    margin-bottom: 16px;
}

.admin-page-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.admin-h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.admin-muted {
    margin: 6px 0 0;
    color: #6b7280;
}

/* Card */
.admin-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e9ecf2;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.admin-card-pad {
    padding: 18px;
}
/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: var(--admin-sidebar-w);
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
        padding: 16px;
    }

    body.admin-shell:not(.sidebar-collapsed) .admin-sidebar {
        transform: translateX(0);
    }

    body.admin-shell:not(.sidebar-collapsed) .admin-sidebar-backdrop {
        display: block;
        position: fixed;
        top: var(--admin-topbar-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.32);
        z-index: 1400;
    }

    .admin-page-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-input {
        min-width: 180px;
        width: 100%;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Page header */
.admin-page-header {
    margin-bottom: 16px;
}

.admin-page-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.admin-h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.admin-muted {
    margin: 6px 0 0;
    color: #6b7280;
}

/* Card */
.admin-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e9ecf2;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.admin-card-pad {
    padding: 18px;
}
    /* =========================================================
    MODIFY PAGE TABLE UI (NO FIXED COLUMN WIDTHS)
    ========================================================= */
    .admin-card-head {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    .admin-table-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        padding-top: 10px;
        border-top: 1px solid #eef1f6;
    }

    .admin-search {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        color: #374151;
        font-weight: 600;
        font-size: 14px;
    }

    .admin-input {
        height: 34px;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        padding: 0 10px;
        min-width: 260px;
        background: #fff;
    }

    .admin-table-wrap {
        overflow: auto;
        margin-top: 8px;
    }

    .admin-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
    }

        .admin-table thead th {
            text-align: left;
            font-size: 16px;
            border-bottom: 2px solid #e5e7eb;
            padding: 14px 12px;
            color: #374151;
            font-weight: 600;
        }

        .admin-table tbody td {
            padding: 16px 12px;
            border-bottom: 1px solid #eef1f6;
            color: #111827;
        }

        /* zebra rows */
        .admin-table tbody tr:nth-child(odd) {
            background: #eeeeee;
        }

        /* Prevent long text from breaking equal spacing */
        /* Apply ellipsis only to text columns */
        .admin-table td:not(.admin-actions),
        .admin-table th:not(:last-child) {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    /* Action buttons */
    .admin-actions {
        text-align: center;
        white-space: nowrap;
    }

    .btn-edit,
    .btn-del,
    .btn-add {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 40px;
        border-radius: 3px;
        border: none;
        text-decoration: none;
        font-weight: 900;
        cursor: pointer;
        font-size: 16px;
    }

    /* ADD button */
    .btn-add {
        background: #2b6a89; /* green */
        color: #fff;
        margin-right: 8px;
    }

    .btn-edit {
        background: #2b6a89;
        color: #fff;
        margin-right: 8px;
    }

    .btn-del {
        background: #2b6a89;
        color: #fff;
    }

    /* =========================================================
     GRID LAYOUT (Create / Edit)
    ========================================================= */
    .admin-form-grid {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 16px;
        align-items: start;
    }

    .admin-span-2 {
        grid-column: 1 / -1;
    }

    /* =========================================================
     MOBILE
     ========================================================= */
   

    .admin-table tbody tr:nth-child(odd) {
        background-color: #e7e7e7;
    }

    .admin-table tbody tr:nth-child(even) {
        background-color: #ffffff;
    }

    .btn-add,
    .btn-add:hover,
    .btn-add:focus,
    .btn-add:active,
    .btn-edit,
    .btn-edit:hover,
    .btn-edit:focus,
    .btn-edit:active,
    .btn-del,
    .btn-del:hover,
    .btn-del:focus,
    .btn-del:active {
        color: #ffffff !important;
        text-decoration: none;
    }


    /* Mechsera primary action button */
    .btn-Submit {
        background-color: #2d90b3;
        color: #ffffff;
        border: none;
        padding: 10px 26px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 6px;
        letter-spacing: 0.4px;
        transition: all 0.25s ease;
    }

        .btn-Submit:hover {
            background-color: #2d90b3;
            color: #ffffff;
        }

        .btn-Submit:focus,
        .btn-Submit:active {
            background-color: #084e56;
            box-shadow: 0 0 0 0.15rem rgba(11, 109, 122, 0.35);
        }

    /* ================================
   RESET BUTTON (Grey Theme)
   ================================ */
    .btn-Reset {
        background-color: #6c757d; /* Bootstrap grey */
        color: #ffffff;
        border: none;
        padding: 10px 30px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 6px;
        letter-spacing: 0.4px;
        transition: all 0.25s ease;
        margin-left: 5px;
    }

        .btn-Reset:hover {
            background-color: #5c636a; /* Slightly darker grey */
            color: #ffffff;
        }

        .btn-Reset:focus,
        .btn-Reset:active {
            background-color: #495057; /* Darker pressed state */
            box-shadow: 0 0 0 0.15rem rgba(108, 117, 125, 0.35);
        }
    /* ================================
   DELETE BUTTON 
   ================================ */

    .btn-Delete {
        background-color: #dc3545;
        color: #ffffff;
        border: none;
        padding: 10px 26px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 6px;
        letter-spacing: 0.4px;
        transition: all 0.25s ease;
        margin-left: 5px;
    }

        .btn-Delete:hover {
            background-color: #c82333;
            color: #ffffff;
        }

        .btn-Delete:focus,
        .btn-Delete:active {
            background-color: #a71d2a;
            box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.35);
        }



    /* Force Bootstrap tooltip text to stay in one line */
    /* Custom tooltip background (Mechsera style) */
    .tooltip-inner {
        background-color: #64b4d1;
        color: #ffffff;
        padding: 10px;
        white-space: nowrap; /* keep single line */
        max-width: none;
        border-radius: 6px;
    }

    /* Arrow color – RIGHT placement */
    .bs-tooltip-end .tooltip-arrow::before {
        border-right-color: #64b4d1;
    }

    /* Arrow color – TOP (fallback if used elsewhere) */
    .bs-tooltip-top .tooltip-arrow::before {
        border-top-color: #64b4d1;
    }


    /* =========================================
   Fullscreen Image Preview (Service Detail)
   ========================================= */
    .img-preview-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.65);
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .img-preview-box {
        position: relative;
        max-width: 95%;
        max-height: 95vh;
    }

        .img-preview-box img {
            display: block;
            max-width: 100%;
            max-height: 95vh;
            border-radius: 10px;
            background: #fff;
        }

    .img-preview-close {
        position: absolute;
        top: 12px;
        right: 12px;
        background: rgba(0,0,0,0.65);
        border: none;
        color: #fff;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        z-index: 2;
    }

    /* icons */
    .sort-filter-icon {
        cursor: pointer;
        font-size: 18px;
        user-select: none;
        color: #0d6efd;
    }

    /*  Use Bootstrap table-responsive + this class */
    .inquiry-table-wrapper {
        max-height: calc(100vh - 260px); /* vertical scroll height */
        overflow-x: auto; /* horizontal scroll only inside table */
        overflow-y: auto; /* vertical scroll inside table */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        border-radius: 10px;
    }

        /* ✅ Sticky table header while scrolling */
        .inquiry-table-wrapper thead th {
            position: sticky;
            top: 0;
            z-index: 5;
            background: #f8f9fa;
        }

    /* ✅ Force horizontal scroll on small screens */
    @media (max-width: 1400px) {
        #inquiryTable {
            width: max-content; /* adjust if needed */
        }
    }

    /* ✅ Dropdown should appear above */
    .inquiry-table-wrapper .dropdown-menu {
        z-index: 3000;
    }

    /* Project Details cell: wrap + inner scroll */
    .project-cell {
        max-width: 380px;
        min-width: 280px;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
        padding: 8px !important;
    }

    .project-scroll {
        max-height: 80px;
        overflow-y: auto;
        overflow-x: hidden;
        line-height: 1.5;
        text-align: justify;
        text-justify: inter-word;
        padding: 6px 12px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

        .project-scroll::-webkit-scrollbar {
            display: none;
        }

    /* Responsive table wrapper */
    .admin-table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Force overflow so scrollbar appears when needed */
    #pagesTable {
        min-width: 700px; /* adjust based on your columns */
        white-space: nowrap; /* prevents breaking columns into unreadable stacked text */
    }

    /* Optional: keep action buttons visible and aligned */
    .admin-actions {
        white-space: nowrap;
        text-align: center;
    }

    @media (max-width: 576px) {
        .admin-card-pad {
            padding: 12px !important;
        }

        .admin-h1 {
            font-size: 26px;
        }

        #pagesTable {
            min-width: 760px; /* little more so scroll definitely works */
        }
    }

    /* Archive tables: horizontal + vertical safe scroll */
    .archive-table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        /* Keep tables readable: force overflow on small screens */
        .archive-table-wrap table {
            min-width: 760px; /* makes horizontal scroll appear on mobile */
            white-space: nowrap; /* avoid breaking columns into 'Pa...' style */
        }

        /* Allow long text columns to truncate nicely */
        .archive-table-wrap td,
        .archive-table-wrap th {
            max-width: 220px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

            /* Optional: make 1-2 columns wrap instead of ellipsis (better for content) */
            .archive-table-wrap td.wrap-col {
                white-space: normal !important;
                max-width: 320px;
            }

    /* Mobile tuning */
    @media (max-width: 576px) {
        .archive-table-wrap table {
            min-width: 900px; /* stronger scroll on very small screens */
        }
    }

    /* ===== 
   Dashboard (Card UI like screenshot)
    ===== */

    .dash2-wrap {
        padding: 18px 10px 8px;
    }

    .dash2-head {
        margin-bottom: 0;
    }

    .dash2-title {
        margin: 0 0 6px;
        font-size: 30px;
        color: #15324b;
        line-height: 1.2;
    }

    .dash2-subtitle {
        margin: 0;
        font-size: .98rem;
        color: #6d8091;
    }

    .brand-card {
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(15, 57, 84, .10);
        border: 1px solid #e7eef5;
        display: flex;
        flex-direction: column;
        min-height: 100%;
        transition: transform .18s ease, box-shadow .18s ease;
    }

        .brand-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 14px 34px rgba(15, 57, 84, .14);
        }

    .brand-card-top {
        position: relative;
        min-height: 70px;
        background: linear-gradient(90deg, #0e6a7d 0%, #1c8aa6 55%, #38b9d5 100%);
    }

    .brand-bubbles {
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    .bub {
        position: absolute;
        border-radius: 999px;
        background: rgba(255,255,255,.12);
    }

    .bub-1 {
        width: 92px;
        height: 92px;
        left: -20px;
        top: 4px;
    }

    .bub-2 {
        width: 64px;
        height: 64px;
        left: 42%;
        top: 16px;
    }

    .bub-3 {
        width: 86px;
        height: 86px;
        right: -12px;
        top: -6px;
    }

    .brand-pill {
        position: absolute;
        top: 12px;
        right: 12px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 10px;
        border-radius: 999px;
        background: rgba(255,255,255,.18);
        color: #fff;
        font-size: .76rem;
        font-weight: 700;
        backdrop-filter: blur(2px);
        line-height: 1;
    }

    .brand-card-body {
        padding: 14px 14px 16px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .brand-title {
        margin: 0 0 6px;
        font-size: 22px;
        color: #173a57;
        line-height: 1.2;
    }

    .brand-desc {
        min-height: 44px;
        font-size: 18px;
        color: #698094;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .brand-divider {
        height: 1px;
        background: #e8eef4;
        margin: 4px 0 10px;
    }

    .brand-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 14px;
    }

    .stat-box {
        border: 1px solid #cfe0eb;
        background: #eef5f9;
        border-radius: 8px;
        min-height: 78px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 6px;
        text-align: center;
    }

    .stat-num {
        font-size: 25px;
        line-height: 1;
        font-weight: 500;
        color: #127092;
        margin-bottom: 6px;
    }

    .stat-lbl {
        color: #607487;
        line-height: 1.1;
    }

    .brand-db-warning {
        margin-bottom: 14px;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid #efdca7;
        background: #fff8df;
        color: #876f1d;
        font-size: .86rem;
        line-height: 1.4;
    }

    .brand-form {
        margin-top: auto;
    }

    .brand-btn {
        width: 100%;
        border: 0;
        border-radius: 10px;
        padding: 10px 14px;
        background: linear-gradient(90deg, #1a87a8 0%, #2ea6c8 100%);
        color: #fff;
        font-weight: 700;
        font-size: .96rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 6px 14px rgba(37, 145, 176, .18);
        transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    }

        .brand-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 18px rgba(37, 145, 176, .22);
            opacity: .96;
        }

    .brand-btn-ico {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgba(255,255,255,.18);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: .82rem;
        line-height: 1;
    }

    @media (min-width: 1400px) {
        .brand-grid .col-xxl-custom {
            width: 33.333333%;
        }
    }

    @media (max-width: 991.98px) {
        .dash2-wrap {
            padding: 1rem;
        }

        .brand-title {
            font-size: 1.6rem;
        }

        .brand-desc {
            font-size: 1rem;
            min-height: auto;
        }
    }

    @media (max-width: 575.98px) {
        .brand-stats {
            grid-template-columns: 1fr;
        }
    }

    /*MECHSERA DASHBOARD CARD UI*/

    /* =========================================================
   Mechsera Dashboard Cards - separate CSS names
   ========================================================= */
    /* =========================================================
   Mechsera Dashboard - Compact Cards with Footer Button
   ========================================================= */

    .mechdash-wrap {
        padding: 18px 12px 12px;
        background: #f5f7fb;
        min-height: calc(100vh - 70px);
    }

    .mechdash-headbar {
        margin-bottom: 18px;
    }

    .mechdash-title {
        margin: 0 0 6px;
        font-size: 30px;
        line-height: 1.2;
        font-weight: 600;
        color: #18344d;
    }

    .mechdash-subtitle {
        margin: 0;
        font-size: .98rem;
        color: #728396;
    }

    .mechdash-grid {
        --bs-gutter-x: 50px;
        --bs-gutter-y: 18px;
        margin-right: 0;
    }

    /* =========================
   Card
   ========================= */
    .mechdash-card {
        display: flex;
        flex-direction: column;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        border: 1px solid #dde5ef;
        box-shadow: 0 4px 16px rgba(20, 40, 70, 0.08);
        min-height: 280px; /* increased height */
        color: inherit;
        text-decoration: none;
        transition: transform .18s ease, box-shadow .18s ease;
    }

        .mechdash-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(20, 40, 70, 0.12);
        }

    /* top color line */
    .mechdash-card--blue {
        border-top: 3px solid #67b7f0;
    }

    .mechdash-card--green {
        border-top: 3px solid #74d0ae;
    }

    .mechdash-card--purple {
        border-top: 3px solid #c6a7f5;
    }

    /* =========================
   Top Section
   ========================= */
    .mechdash-card-top {
        min-height: 88px;
        padding: 22px 20px 18px;
    }

    .mechdash-card--blue .mechdash-card-top {
        background: #eef6fd;
    }

    .mechdash-card--green .mechdash-card-top {
        background: #eef8f3;
    }

    .mechdash-card--purple .mechdash-card-top {
        background: #f5effd;
    }

    .mechdash-toprow {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .mechdash-topicon {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 50px;
        line-height: 1;
    }

    .mechdash-card--blue .mechdash-topicon {
        color: #2d6697;
    }

    .mechdash-card--green .mechdash-topicon {
        color: #479170;
    }

    .mechdash-card--purple .mechdash-topicon {
        color: #715bb5;
    }

    .mechdash-toptext h3 {
        margin: 0 0 4px;
        font-size: 23px;
        line-height: 1.2;
        color: #253243;
    }

    .mechdash-toptext p {
        margin: 0;
        font-size: 18px;
        color: #6d7b8b;
        line-height: 1.3;
    }

    /* =========================
   Body
   ========================= */
    .mechdash-card-body {
        flex: 1;
        padding: 18px 18px 1px;
        background: #fff;
        border-top: 1px solid #edf1f6;
        display: flex;
        flex-direction: column;
    }

    .mechdash-bigstat {
        font-size: 30px;
        line-height: 1;
        font-weight: 500;
        color: #263445;
        margin-bottom: 10px;
    }

    .mechdash-biglabel {
        font-size: 16px;
        line-height: 1.3;
        color: #5f6f81;
        margin-bottom: 18px;
    }

    .mechdash-note {
        margin-top: auto;
        font-size: 15px;
        line-height: 1.45;
        color: #7b8795;
    }

    /* =========================
   Inquiry mini stats
   ========================= */
    .mechdash-mini-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 18px;
    }

    .mechdash-mini-box {
        min-height: 88px;
        border-radius: 8px;
        border: 1px solid #dbe4ee;
        background: #f3f7fb;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px 8px;
    }

    .mechdash-mini-box--warn {
        background: #fdf5ea;
        border-color: #f0dec0;
    }

    .mechdash-mini-box--done {
        background: #eef7f0;
        border-color: #d6e8da;
    }

    .mechdash-mini-num {
        font-size: 26px;
        line-height: 1;
        font-weight: 500;
        color: #2a3646;
        margin-bottom: 8px;
    }

    .mechdash-mini-lbl {
        font-size: 13px;
        line-height: 1.2;
        color: #637385;
    }

    /* =========================
   DB warning
   ========================= */
    .mechdash-dbwarn {
        padding: 12px 14px;
        border-radius: 8px;
        border: 1px solid #efdca7;
        background: #fff8df;
        color: #876f1d;
        font-size: .9rem;
        line-height: 1.45;
        margin-bottom: 18px;
    }

    /* =========================
   Footer Button
   ========================= */
    .mechdash-card-footer {
        padding: 0 18px 18px;
        background: #fff;
    }

    .mechdash-btn {
        width: 100%;
        min-height: 44px;
        border: 0;
        border-radius: 8px;
        color: #fff;
        font-size: 18px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
        box-shadow: 0 6px 14px rgba(30, 80, 130, 0.14);
    }

        .mechdash-btn:hover {
            transform: translateY(-1px);
            opacity: .97;
            color: #fff;
        }

    .mechdash-btn--blue {
        background: linear-gradient(90deg, #2f74b8 0%, #5aaee3 55%, #84cbf3 100%);
    }

    .mechdash-btn--green {
        background: linear-gradient(90deg, #2e8d63 0%, #5fc793 55%, #8be0b8 100%);
    }

    .mechdash-btn--purple {
        background: linear-gradient(90deg, #7f63db 0%, #a98aee 55%, #c5adf7 100%);
    }

    .mechdash-btn {
        box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px rgba(30, 80, 130, 0.14);
    }

    .mechdash-btn-ico {
        width: 20px;
        height: 20px;
        border-radius: 999px;
        background: rgba(255,255,255,.16);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .mechdash-btn-ico i {
            font-size: 10px;
            line-height: 1;
            color: #fff;
        }

    /* =========================
   Responsive
   ========================= */
    @media (max-width: 991.98px) {
        .mechdash-wrap {
            padding: 14px 10px 10px;
        }

        .mechdash-title {
            font-size: 26px;
        }

        .mechdash-card {
            min-height: 260px;
        }
    }

    @media (max-width: 575.98px) {
        .mechdash-mini-stats {
            grid-template-columns: 1fr;
        }
    }



  /*
  AUTOMATION GALLERY image PAGE */
  .automation-gallery-card {
    border-radius: 22px;
    overflow: hidden;
   }

.automation-filter-tabs .btn {
    min-width: 92px;
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 18px;
}

    .automation-filter-tabs .btn.active {
        background: #0d6efd;
        color: #fff;
        border-color: #0d6efd;
    }

.automation-table-wrap {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.automation-table {
    width: 100%;
    margin-bottom: 0;
    vertical-align: middle;
    table-layout: auto;
}
.label-title {
    font-weight: 640;
    font-size: 17px;
}
.automation-table thead th {
    background: #f5f7fb;
    color: #212529;
    font-weight: 640;
    font-size: 17px;
    border-bottom: 1px solid #dee2e6;
    padding: 16px 18px;
    white-space: nowrap;
}

.automation-table tbody td {
    text-align: center;
    padding: 14px 18px;
    border-color: #edf0f3;
    font-size: 20px;
    color: #334155;
    white-space: nowrap;
}

    .automation-table tbody tr:hover {
        background: #f9fbfd;
    }

    .automation-table .check-col {
        width: 44px;
        text-align: center;
    }

   

    .automation-table .image-col {
        width: 110px;
    }

.automation-thumb-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.automation-thumb {
    width: 199px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
}
.automation-img-expand-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: none !important;
    border-radius: 50%;
    background: rgba(45, 144, 179, 0.95) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 20 !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

    .automation-img-expand-btn i {
        font-size: 12px;
        line-height: 1;
        color: #ffffff !important;
    }

    .automation-img-expand-btn:hover,
    .automation-img-expand-btn:focus {
        background: #1f7897 !important;
        color: #ffffff !important;
    }

/* Full page image overlay */
.automation-gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.automation-gallery-overlay-box {
    position: relative;
    display: inline-block;
    max-width: 92vw;
    max-height: 92vh;
}


    .automation-gallery-overlay-box img {
        display: block;
        max-width: 92vw;
        max-height: 92vh;
        width: auto;
        height: auto;
        border-radius: 14px;
        background: #fff;
        object-fit: contain;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    }

.automation-gallery-overlay-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    font-size: 18px;
}

    .automation-gallery-overlay-close:hover,
    .automation-gallery-overlay-close:focus {
        background: rgba(0, 0, 0, 0.75);
        color: #fff;
    }
.gallery-preview-modal-content {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
}

.gallery-preview-image {
    max-height: 75vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: #f8f9fb;
}
.automation-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

    .automation-status-badge.active {
        background: #eaf8ef;
        color: #198754;
        border-color: #b9e7c8;
    }

    .automation-status-badge.inactive {
        background: #eef2f7;
        color: #516174;
        border-color: #d6dee8;
    }
    .automation-status-badge i {
        font-size: 11px;
    }

.automation-empty {
    padding: 32px 16px;
    color: #6c757d;
    text-align: center;
}

.automation-table-footer {
    padding: 14px 16px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    border-top: 1px solid #edf0f3;
    background: #fff;
}

.automation-form .form-control {
    min-height: 46px;
    border-radius: 10px;
}

.automation-form .btn-save {
    min-height: 46px;
    border-radius: 10px;
    font-weight: 600;
    padding-inline: 22px;
}

.automation-form .form-switch .form-check-input {
    width: 2.8rem;
    height: 1.4rem;
    cursor: pointer;
}

.automation-row-save-btn {
    background: #2f93b7;
    color: #fff;
    border: none;
    border-radius: 8px;
    min-width: 86px;
    height: 42px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: none;
}

    .automation-row-save-btn:hover,
    .automation-row-save-btn:focus {
        background: #267e9d;
        color: #fff;
    }

.automation-table td.text-center,
.automation-table th.text-center {
    text-align: center;
    vertical-align: middle;
}

.automation-status-dropdown {
    min-width: 110px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #cfd8e3;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background-color: #fff;
    box-shadow: none;
}

    .automation-status-dropdown:focus {
        border-color: #2f93b7;
        box-shadow: 0 0 0 0.15rem rgba(47, 147, 183, 0.15);
    }



/*REFYNEX INQUIRY table (inquiry type )*/
.inquiry-type-cell,
.project-cell {
    vertical-align: middle;
}

.inquiry-type-text {
    padding: 19px 22px;
    text-align: justify;
    text-justify: inter-word;
    white-space: normal;
    word-break: break-word;
}





.automation-table th,
.automation-table td {
    vertical-align: middle;
}

    .automation-table th:last-child,
    .automation-table td:last-child {
        text-align: center;
    }

.automation-thumb {
    width: 99px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.action-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

    .action-icon-btn i {
        font-size: 16px;
        line-height: 1;
    }

.js-info-btn,
.js-edit-btn {
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff !important;
    border: 1px solid #2d90b3 !important;
    color: #2d90b3 !important;
}

    .js-info-btn i,
    .js-edit-btn i {
        color: #2d90b3 !important;
        font-size: 20px;
        line-height: 1;
    }

    .js-info-btn:hover,
    .js-edit-btn:hover,
    .js-info-btn:focus,
    .js-edit-btn:focus,
    .js-info-btn:active,
    .js-edit-btn:active {
        background: #2d90b3 !important;
        border-color: #2d90b3 !important;
        color: #fff !important;
    }

        .js-info-btn:hover i,
        .js-edit-btn:hover i,
        .js-info-btn:focus i,
        .js-edit-btn:focus i,
        .js-info-btn:active i,
        .js-edit-btn:active i {
            color: #fff !important;
        }

.gallery-info-popover {
    --bs-popover-max-width: 280px;
    --bs-popover-border-color: #74bdd7;
    --bs-popover-header-bg: #74bdd7;
    --bs-popover-header-color: #ffffff;
    --bs-popover-body-padding-x: 12px;
    --bs-popover-body-padding-y: 10px;
}

    .gallery-info-popover .popover {
        border-radius: 10px;
        border: 1px solid #74bdd7;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    }

    .gallery-info-popover .popover-header {
        font-size: 13px;
        font-weight: 600;
        padding: 8px 12px;
        border-bottom: none;
    }

    .gallery-info-popover .popover-body {
        background: #ffffff;
        border-radius: 0 0 10px 10px;
    }

.gallery-info-popover-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-info-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gallery-info-label {
    font-size: 12px;
    font-weight: 700;
    color: #2d90b3;
}

.gallery-info-value {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    word-break: break-word;
}
.js-info-popover,
.js-edit-btn {
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff !important;
    border: 1px solid #2d90b3 !important;
    color: #2d90b3 !important;
}

    .js-info-popover i,
    .js-edit-btn i {
        color: #2d90b3 !important;
        font-size: 20px;
        line-height: 1;
    }

    .js-info-popover:hover,
    .js-edit-btn:hover,
    .js-info-popover:focus,
    .js-edit-btn:focus,
    .js-info-popover:active,
    .js-edit-btn:active {
        background: #2d90b3 !important;
        border-color: #2d90b3 !important;
        color: #fff !important;
    }

        .js-info-popover:hover i,
        .js-edit-btn:hover i,
        .js-info-popover:focus i,
        .js-edit-btn:focus i,
        .js-info-popover:active i,
        .js-edit-btn:active i {
            color: #fff !important;
        }
/* =========================================================
   TULLA DASHBOARD CARD UI
========================================================= */

.tulla-dashboard-page {
    background: #f5f8fc;
    min-height: 100vh;
}

.tulla-page-title {
    font-size: 30px;
    color: #1f2d3d;
    margin-bottom: 6px;
}

.tulla-page-subtitle {
    color: #7b8794;
    font-size: 14px;
    margin-bottom: 0;
}

.tulla-dashboard-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #d6e3f0; /* little visible border */
    box-shadow: 0 10px 25px rgba(38, 77, 145, 0.08);
    transition: all 0.25s ease;
    min-height: 255px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .tulla-dashboard-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 32px rgba(38, 77, 145, 0.14);
    }

.tulla-card-top-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 92px;
    background: linear-gradient(135deg, #dff1ff 0%, #eef7ff 55%, #ffffff 100%);
}

    .tulla-card-top-bg::before,
    .tulla-card-top-bg::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        background: rgba(86, 165, 255, 0.12);
    }

    .tulla-card-top-bg::before {
        width: 220px;
        height: 220px;
        top: -150px;
        left: -40px;
    }

    .tulla-card-top-bg::after {
        width: 180px;
        height: 180px;
        top: -120px;
        right: -60px;
    }

.tulla-card-body {
    position: relative;
    z-index: 2;
    padding: 26px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.tulla-card-content {
    display: flex;
    flex-direction: column;
}

.tulla-card-icon-wrap {
    margin-bottom: 18px;
}

.tulla-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #53b2ff, #2fd2f6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(47, 124, 246, 0.25);
    font-size: 32px;
}

.tulla-card-title {
    font-size: 22px;
    color: #243447;
    margin-bottom: 10px;
}

.tulla-card-text {
    color: #738295;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 380px;
}

.tulla-card-btn {
    align-self: flex-start;
    margin-top: 20PX;
    background: linear-gradient(135deg, #4ca4ff, #1b7893);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(47, 124, 246, 0.22);
    transition: all 0.25s ease;
}

    .tulla-card-btn:hover {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 12px 22px rgba(47, 124, 246, 0.28);
    }

@media (max-width: 767.98px) {
    .tulla-page-title {
        font-size: 24px;
    }

    .tulla-dashboard-card {
        min-height: auto;
    }

    .tulla-card-title {
        font-size: 20px;
    }
}

/* Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

/* Modal Box */
.modal-container {
    background: #fff;
    border-radius: 16px;
    padding: 30px 28px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease;
}

/* Close */
.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

    .close-btn:hover {
        color: #000;
    }

/* Heading */
.modal-container h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Subtitle */
.modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Input */
.modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

    .modal-input:focus {
        border-color: #007bff;
        outline: none;
    }

/* Button */
.modal-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}

    .modal-btn:hover {
        opacity: 0.95;
    }

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}






/* Toggle Switch */

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
}

    .toggle-switch input {
        display: none;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e4e4e4;
    border-radius: 50px;
    transition: 0.3s;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 28px;
        width: 28px;
        left: 3px;
        bottom: 3px;
        background: white;
        border-radius: 50%;
        transition: 0.3s;
    }

/* ON state */

.toggle-switch input:checked + .toggle-slider {
    background: #32bfd7;
}

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(36px);
    }

/* ON text */

.toggle-slider:after {
    content: "OFF";
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.toggle-switch input:checked + .toggle-slider:after {
    content: "ON";
    left: 10px;
    right: auto;
}





/* Thumbnail wrapper */
.mechsera-thumb-wrap {
    position: relative;
    width: 100px;
    height: 70px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Image */
.mechsera-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mechsera-img-expand-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 150, 200, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* ✅ CHANGE HERE */
    opacity: 1; /* always visible */
}

/* Full page image overlay */
.mechsera-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.68); /* Matching the dark transparency */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Box wrapper that shrinks to fit the image */
.mechsera-overlay-box {
    position: relative;
    display: inline-block; /* CRITICAL: Makes box same width as image */
    max-width: 92vw;
    max-height: 92vh;
}

    /* The Image Styling */
    .mechsera-overlay-box img {
        display: block; /* Removes bottom spacing */
        max-width: 92vw;
        max-height: 92vh;
        width: auto;
        height: auto;
        border-radius: 14px; /* Matches your request */
        background: #fff;
        object-fit: contain;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    }

/* Close Button (Cross Icon) */
.mechsera-overlay-close {
    position: absolute;
    top: 10px; /* Pinned 10px from the top edge of the image */
    right: 10px; /* Pinned 10px from the right edge of the image */
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

    /* Hover effects for the close button */
    .mechsera-overlay-close:hover,
    .mechsera-overlay-close:focus {
        background: rgba(0, 0, 0, 0.75);
        color: #fff;
        transform: scale(1.05);
    }


.custom-modal {
    border-radius: 16px;
    padding: 10px;
}

/* Inputs */
.custom-input {
    border-radius: 10px;
    padding: 10px;
}

/* STATUS BUTTONS */
.status-toggle {
    display: flex;
    gap: 10px;
}

    .status-toggle input {
        display: none;
    }

    .status-toggle label {
        flex: 1;
        text-align: center;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #ddd;
        cursor: pointer;
        transition: 0.2s;
        background: #f8f9fa;
    }

    .status-toggle input:checked + label {
        background: #d1f2e1;
        border-color: #198754;
        color: #198754;
        font-weight: 600;
    }

/* FILE BOX */
.file-box {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px;
    background: #f9f9f9;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.automation-thumb-wrap {
    position: relative;
    display: inline-block;
}

.automation-img-expand-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #1597b8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}

    .automation-img-expand-btn:hover {
        background: #0f819d;
        color: #fff;
    }



