@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root {
    --primary-green: #8AA501;
    --dark-black: #101007;
    --light-bg: #F8F9F4;
    --accent-light: rgba(138,165,1,0.2);
    --text-dark: #2B1B17;
    --text-light: #F8F9F4;
    --warning-red: #A33;
    --success-green: #1E7D4D;
}
body {
    font-family: 'Inter', sans-serif;
     background: var(--light-bg);
    color: var(--dark-black);
}


/* ============== HEADER ============= */
.header {
    height: 65px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-black) 100%);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    border-radius: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}
.header-center {
    display: none; /* hide center logo on desktop */
}

/* LEFT SIDE (LOGO) */
.header-left .logo-icon {
    display: block;
    height: 60px;
    width: auto;
    margin: 5px 10px;
    margin-bottom: 20px;
}

/* RIGHT SIDE (USER) */
.header-right { display: flex; align-items: center; }
.user-menu { position: relative; }

.user-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 4px 10px 4px 5px;
    background: var(--primary-green);
    color: var(--text-light);
    border: 1px solid var(--dark-black);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s ease;
}

.user-btn:hover {
    background: var(--primary-green);
    border-color: var(--dark-black);
}

.avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 1px solid var(--dark-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar i { width: auto; height: auto; }

.arrow { font-size: 9px; color: var(--text-light); margin-left: 2px; }

.dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    min-width: 160px;
    background: var(--primary-green);
    color: var(--text-light);
    border: 1px solid var(--dark-black);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    overflow: hidden;
    display: none;
    z-index: 999;
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: 0.2s ease;
}

.dropdown a:hover { background: var(--dark-black); }
.dropdown a:not(:last-child) { border-bottom: 1px solid var(--dark-black); }

/* ============== SIDEBAR ============= */
.sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    width: 250px;
    height: calc(100vh - 65px);
    background: var(--dark-black);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 6px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    background: var(--primary-green);
    color: var(--dark-black);
}

.nav-icon { width: 50px; text-align: center; font-size: 18px; }

/* MENU SECTION TITLE */
.nav-section { margin-top: 10px; }
.nav-title { font-size: 12px; color: var(--primary-green); padding: 8px 14px; text-transform: uppercase; letter-spacing: 1px; }

/* SUB ITEMS */
.nav-item.sub {
    color: var(--primary-green);
    padding-left: 22px;
    font-size: 14px;
}
.nav-item.sub .nav-icon { font-size: 16px; }

.nav-toggle {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
}
.nav-dropdown.open .nav-toggle {
    background: var(--primary-green);
    color: var(--text-light);
}
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding-left: 12px;
}
.submenu a {
    color: var(--text-light); /* অথবা dark-black যদি light background হয় */
    
}

.nav-dropdown.open .submenu a {
    color: var(--text-light); /* text সবসময় visible রাখবে */
}

.submenu a:hover {
    color: var(--dark-black); /* hover color */
    background: var(--primary-green); /* hover background */
}
.nav-dropdown.open .submenu { max-height: 140px; }
.nav-dropdown.open .nav-toggle .nav-icon { transform: rotate(90deg); }
.nav-toggle .nav-icon { transition: transform 0.25s ease; }

/* ============== DASHBOARD ============= */
.main-content {
    margin-left: 250px;
    padding: 95px 34px 34px;
    min-height: 100vh;
    background: var(--light-bg);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    animation: dashboardFade 0.7s ease both;
}

.eyebrow {
    color: var(--primary-green);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-header h1 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 4px 0 0;
    letter-spacing: -1px;
}

.date-pill {
    background: var(--light-bg);
    color: var(--primary-green);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(43, 27, 23, 0.08);
    transition: 0.25s ease;
}
.date-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(43, 27, 23, 0.14);
}

.dashboard-cards, .dashboard-grid {
    display: grid;
    gap: 22px;
}
.dashboard-cards { grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
.dashboard-grid { grid-template-columns: 1.2fr 1fr; }

.stat-card {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-black) 100%);
    color: var(--text-light);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 18px 40px rgba(43, 27, 23, 0.18);
    position: relative;
    overflow: hidden;
    transition: 0.25s ease;
    isolation: isolate;
    cursor: pointer;
    animation: cardReveal 0.75s ease both;
}
.stat-card::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -35px;
    width: 120px;
    height: 120px;
    background: rgba(138,165,1,0.1);
    border-radius: 50%;
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18), transparent 80%);
    transform: translateX(-120%);
    z-index: -1;
}
.stat-card:hover {
    transform: translateY(-7px) scale(1.015);
    box-shadow: 0 26px 55px rgba(43, 27, 23, 0.25);
}
.stat-card:hover::before {
    animation: shineMove 0.9s ease;
}
.stat-card:nth-child(2) { animation-delay: 0.12s; }
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(245, 230, 202, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: 0.3s ease;
}
.stat-card:hover .stat-icon {
    transform: rotate(-8deg) scale(1.12);
    background: rgba(245, 230, 202, 0.2);
}
.stat-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: rgba(248,249,244,0.8);
}
.stat-card h2 {
    margin: 8px 0 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-light);
    animation: numberPop 0.8s ease both;
}

.dashboard-section {
    background: var(--light-bg);
    border: 1px solid rgba(138,165,1,0.08);
    padding: 22px;
    box-shadow: 0 14px 34px rgba(43, 27, 23, 0.07);
    transition: 0.28s ease;
    animation: sectionReveal 0.8s ease both;
}
.dashboard-section.large { grid-row: span 2; }
.dashboard-section:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(43, 27, 23, 0.13);
    border-color: var(--dark-black);
}
.dashboard-section:nth-child(2) { animation-delay: 0.08s; }
.dashboard-section:nth-child(3) { animation-delay: 0.16s; }
.dashboard-section:nth-child(4) { animation-delay: 0.24s; }

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.section-title h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 800;
}
.section-title span {
    background: var(--primary-green);
    color: var(--dark-black);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    transition: 0.25s ease;
}
.dashboard-section:hover .section-title span {
    transform: scale(1.08);
    background: var(--text-dark);
    color: var(--text-light);
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(138,165,1,0.15);
    color: var(--dark-black);
    font-size: 14px;
    border-radius: 14px;
    transition: 0.25s ease;
}
.list-item:last-child { border-bottom: none; }
.list-item span, .list-item small { color: var(--primary-green); }
.list-item strong {
    background: var(--primary-green);
    color: var(--dark-black);
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    transition: 0.25s ease;
}
.list-item:hover { background: linear-gradient(90deg, #fff7e9, transparent); transform: translateX(7px); }
.list-item:hover strong { transform: scale(1.07); background: var(--text-dark); color: var(--text-light); }
.list-item.danger strong { background: var(--warning-red); color: var(--text-light); }
.list-item.danger:hover strong { background: var(--warning-red); color: #fff; }

.payment-row {
    display: grid;
    grid-template-columns: 90px 1fr 80px;
    align-items: center;
    gap: 12px;
    padding: 13px 10px;
    border-bottom: 1px solid rgba(111, 78, 55, 0.12);
    border-radius: 14px;
    transition: 0.25s ease;
}
.payment-row:last-child { border-bottom: none; }
.payment-row span { font-weight: 700; color: var(--primary-green); font-size: 14px; }
.payment-row strong { text-align: right; color: var(--text-dark); font-size: 14px; }
.payment-row:hover { background: #fff7e9; transform: translateX(7px); }

.payment-bar { height: 8px; background: #f0f4e8; border-radius: 999px; overflow: hidden; }
.payment-bar div { height: 100%; background: linear-gradient(90deg, var(--primary-green), var(--dark-black)); border-radius: 999px; animation: barGrow 1.1s ease both; position: relative; overflow: hidden; }
.payment-bar div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); animation: barShine 1.8s ease infinite; }

/* Animations */
@keyframes dashboardFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardReveal { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sectionReveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shineMove { to { transform: translateX(120%); } }
@keyframes numberPop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes barGrow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes barShine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* ============== USERS & ROLES ============= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-green);
    margin: 4px 0 0;
}


.btn-light {
    border: none;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;

}


.btn-primary {
    background: linear-gradient(135deg, #8AA501, #101007);
    color: #F8F9F4;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(43, 27, 23, 0.25);
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    margin-top: 10px;
    width: 30%;
    margin-left: 320px;

}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(43, 27, 23, 0.35);
     background: linear-gradient(135deg, #101007, #8AA501);
}

.btn-add {
    background: linear-gradient(135deg, #8AA501, #101007);
    color: #F8F9F4;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(43, 27, 23, 0.25);
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(43, 27, 23, 0.35);
    background: linear-gradient(135deg, #101007, #8AA501);
}


.btn-add:active {
    transform: scale(0.96);
}

.btn-light {
    background: #F8F9F4;
    color: #101007;
    box-shadow: 0 8px 24px rgba(43, 27, 23, 0.08);
}

.table-card,
.form-card {
    background: #F8F9F4;
    border: 1px solid rgba(138,165,1,0.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(43, 27, 23, 0.07);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    color: #8AA501;
    border-bottom: 1px solid rgba(138,165,1,0.15);
    font-size: 13px;
    padding: 14px;
    
}

.data-table td {
    padding: 14px;
     color: #101007;
    border-bottom: 1px solid rgba(138,165,1,0.08);
    font-size: 14px;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
}

.status-badge.active {
    background: #8AA501;
    color: #101007;
}

.status-badge.inactive {
    background: #ffe4df;
    color: #b42318;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(138,165,1,0.3);
    background: #F8F9F4;
    color: #afaf19;
    padding: 0 14px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #afaf19;
}

.toast {
    position: fixed;
    top: 90px;
    right: 400px;
    background: var(--primary-green);
    color: #F5E6CA;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(43, 27, 23, 0.25);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

/* Edit */
.btn-edit {
    background: #f5e6ca;
    color: var(--primary-green);
}

.btn-edit:hover {
    background: #e8d2a5;
}

/* Delete */
.btn-delete {
    background: #ffe4df;
    color: #b42318;
}

.btn-delete:hover {
    background: #ffc9c0;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
    white-space: nowrap;
}

.btn-edit {
    background: #f5e6ca;
    color: #8AA501;
}

.btn-edit:hover {
    background: #e8d2a5;
}

.btn-delete {
    background: #ffe4df;
    color: #b42318;
}

.btn-delete:hover {
    background: #ffc9c0;
}

.form-group small {
    color: #8A7F78;
    font-size: 12px;
}

.btn-save {
    background: #8AA501;
    color: #F5E6CA;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(43, 27, 23, 0.25);
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    text-decoration: none;
    margin-top: 10px;

}

/* ============== LOGIN PAGE ============== */
.login-body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top right, var(--accent-light), transparent 30%),
        linear-gradient(135deg, var(--primary-green) 0%, 45%, var(--light-bg) 45%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    padding: 20px;
}

.login-card {
    max-width: 420px;
    margin: auto;
    background: var(--light-bg);
    border: 1px solid rgba(138,165,1,0.15);
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(43, 27, 23, 0.25);
}

.login-brand {
    text-align: center;
    margin-bottom: 26px;
}

.login-brand img {
    max-width: 250px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0px;
}

.login-brand h1 {
    margin: 0;
    font-size: 34px;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -1px;
}

.login-brand p {
    margin-top: 0px;
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 600;
}

.alert-error {
    background: #ffe4df;
    color: var(--warning-red);
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
}

.login-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 999px;
    margin-top: 8px;
    background: var(--primary-green);
    color: var(--text-light);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(43, 27, 23, 0.25);
    transition: 0.25s ease;
}

.login-btn:hover {
    background: var(--dark-black);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(43, 27, 23, 0.32);
}

.login-hint {
    margin-top: 18px;
    text-align: center;
    color: var(--primary-green);
    font-size: 12px;
    font-weight: 600;
}

/* ============== USER PROFILE ============== */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
}

.profile-card,
.profile-form-card {
    background: var(--light-bg);
    border: 1px solid rgba(138,165,1,0.08);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 14px 34px rgba(43, 27, 23, 0.07);
}

.profile-card { text-align: center; }

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--primary-green);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid var(--light-bg);
}

.profile-avatar img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.profile-card h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 800;
}

.profile-card p {
    margin: 8px 0 16px;
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 600;
}

.profile-form-card h3 {
    margin: 0 0 20px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 800;
}

.profile-form-card.full { grid-column: 1 / -1; }

.profile-alert { margin-bottom: 18px; }

.form-group input[readonly] {
    background: var(--light-bg);
    color: var(--primary-green);
    cursor: not-allowed;
}
/* ================= MENU ================= */
/* ================= CATEGORY TABLE ================= */
/* GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* CARD */
.category-card {
    background: var(--light-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
}

/* IMAGE */
.category-img {
    height: 140px;
    background: var(--light-bg);
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--text-dark);
}

/* BODY */
.category-body {
    padding: 16px;
}

.category-body h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-dark);
}

.category-body p {
    margin: 6px 0 10px;
    font-size: 13px;
    color: var(--primary-green);
}

/* META */
.category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-count {
    font-size: 12px;
    font-weight: 600;
    background: var(--light-bg);
    color: var(--primary-green);
    padding: 4px 10px;
    border-radius: 999px;
}

/* ACTIONS */
.category-actions {
    padding: 12px 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    gap: 8px;
}

.btn-view {
    flex: 1;
    text-align: center;
    background: var(--primary-green);
    color: var(--text-light);
    padding: 6px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
}

.btn-edit,
.btn-delete {
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 8px;
    text-decoration: none;
}

.btn-edit {
    background: var(--light-bg);
    color: var(--primary-green);
}

.btn-delete {
    background: #ffe0e0;
    color: var(--warning-red);
}

/* ================= ADD BUTTON ================= */
.btn-add {
    background: var(--primary-green);
    color: var(--text-light);
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(111, 78, 55, 0.3);
    transition: 0.2s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(111, 78, 55, 0.4);
}

/* ================= FORM ================= */
.form-card {
    background: var(--light-bg);
    border-radius: 18px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 10px 28px rgba(43, 27, 23, 0.06);
    border: 1px solid rgba(138,165,1,0.08);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(138,165,1,0.3);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.2s ease;
    background: var(--light-bg);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px var(--accent-light);
}

/* ================= SAVE BUTTON ================= */
.btn-save {
    margin-top: 10px;
    background: var(--primary-green);
    color: var(--text-light);
    border: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(111, 78, 55, 0.3);
}

/* IMAGE */
.table-img,
.no-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-dark);
}

/* ITEM COUNT */
.item-count-badge {
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* ================= ITEMS / POS SECTION ================= */

.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.category-filter-banner {
    background: var(--light-bg);
    border: 1px solid rgba(138,165,1,0.1);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 24px rgba(43, 27, 23, 0.05);
}

.category-filter-banner strong,
.category-filter-banner span,
.category-filter-banner a {
    color: var(--primary-green);
    font-weight: 700;
    text-decoration: none;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.item-card {
    background: var(--light-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.25s ease;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.1);
}

.item-img {
    height: 150px;
    background: var(--light-bg);
}
.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-body { padding: 16px; }
.item-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.item-top h3 { margin: 0; color: var(--text-dark); font-size: 18px; font-weight: 800; }
.item-body p { margin: 8px 0 14px; color: var(--primary-green); font-size: 13px; line-height: 1.5; }

.item-meta { display: flex; justify-content: space-between; align-items: center; }
.item-meta span { background: var(--light-bg); color: var(--primary-green); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.item-meta strong { color: var(--text-dark); font-size: 18px; font-weight: 800; }

.item-actions { padding: 12px 16px; border-top: 1px solid rgba(138,165,1,0.08); display: flex; gap: 8px; }

.empty-state { grid-column: 1 / -1; background: var(--light-bg); border-radius: 18px; padding: 30px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.empty-state h3 { color: var(--text-dark); margin: 0 0 8px; }
.empty-state p { color: var(--primary-green); margin: 0; }
.full-width { grid-column: 1 / -1; }

.preview-img { width: 130px; height: 100px; object-fit: cover; border-radius: 14px; border: 4px solid var(--light-bg); }

.recipe-card {
    background: var(--light-bg);
    border: 1px solid rgba(138,165,1,0.08);
    border-radius: 22px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 14px 34px rgba(43, 27, 23, 0.07);
}

.recipe-header { margin-bottom: 18px; }
.recipe-header h3 { margin: 4px 0 0; color: var(--text-dark); font-size: 22px; font-weight: 800; }

.recipe-form { display: grid; grid-template-columns: 1fr 200px 180px; gap: 16px; align-items: end; margin-bottom: 22px; }
.recipe-btn-wrap .btn-save { width: 100%; }
.recipe-list { display: flex; flex-direction: column; gap: 10px; }
.recipe-row {
    display: flex; justify-content: space-between; align-items: center;
    background: #f8f9f4;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid rgba(138,165,1,0.08);
}
.recipe-row strong { display: block; color: var(--text-dark); font-size: 14px; font-weight: 800; }
.recipe-row span { display: block; margin-top: 4px; color: var(--primary-green); font-size: 13px; font-weight: 600; }
.empty-text { color: var(--primary-green); font-size: 14px; }



/* ============== POS MODERN CARD STYLE ============= */

.pos-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: flex-start;
}

.pos-menu {
    background: #ffffff;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(43, 27, 23, 0.08);
}

.pos-categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.cat-btn {
    border: 1px solid rgba(111, 78, 55, 0.15);
    background: var(--dark-black);
    color: wheat;
    padding: 11px 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.cat-btn:hover,
.cat-btn.active {
    background: #e8fff2;
    border-color: var(--dark-black);
    color: var(--dark-black);
}

.pos-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 18px;
}

.pos-item {
    background: #ffffff;
    border: 1px solid rgba(111, 78, 55, 0.12);
    border-radius: 24px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 10px 24px rgba(43, 27, 23, 0.06);
}

.pos-item:hover {
    transform: translateY(-5px);
    border-color: var(--dark-black);
    box-shadow: 0 18px 34px rgba(43, 27, 23, 0.12);
}

.pos-item-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #f5e6ca;
    margin: 0 auto 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.pos-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos-item h4 {
    margin: 0;
    color: var(--dark-black);
    font-size: 14px;
    font-weight: 800;
    min-height: 36px;
}

.pos-item p {
    margin: 6px 0 12px;
    color: var(--dark-black);
    font-size: 14px;
    font-weight: 800;
}

.add-btn {
    width: 100%;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: var(--dark-black);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.add-btn span {
    margin-right: 5px;
}

.add-btn:hover {
    background:var(--dark-black);
}

/* CART */
.pos-cart {
    background: #ffffff;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(43, 27, 23, 0.08);
    position: sticky;
    top: 90px;
}

.pos-cart h3 {
    margin: 0 0 18px;
    color: var(--dark-black);
    font-size: 22px;
    font-weight: 900;
}

#cartItems {
    max-height: 330px;
    overflow-y: auto;
    margin-bottom: 18px;
}

.cart-row {
    background: #f8f1e8;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cart-row span {
    font-size: 13px;
    font-weight: 800;
    color: var(--dark-black);
}

.cart-row strong {
    font-size: 13px;
    font-weight: 900;
    color: var(--dark-black);
}

.cart-total {
    border-top: 1px solid rgba(111, 78, 55, 0.15);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 900;
    color: var(--dark-black);
}

.btn-checkout {
    width: 100%;
    margin-top: 18px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: var(--dark-black);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-checkout:hover {
    background:var(--dark-black);
    transform: translateY(-2px);
}

.payment-box {
    margin: 18px 0;
}

.payment-box label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-black);
    font-size: 14px;
    font-weight: 800;
}

.payment-box select {
    width: 100%;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(111, 78, 55, 0.18);
    padding: 0 14px;
    outline: none;
    font-weight: 700;
}

.empty-cart {
    color: #8A7F78;
    font-size: 14px;
}

.cart-row small {
    display: block;
    margin-top: 4px;
    color: #8A7F78;
    font-size: 12px;
    font-weight: 600;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-actions button {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #f5e6ca;
    color: var(--dark-black);
    font-weight: 900;
    cursor: pointer;
}

.cart-actions button:last-child {
    background: #ffe0e0;
    color: #a33;
}

.discount-box {
    margin: 16px 0;
}

.discount-box label,
.payment-box label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-black);
    font-size: 14px;
    font-weight: 800;
}

.discount-box input,
.payment-box select {
    width: 100%;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(111, 78, 55, 0.18);
    padding: 0 14px;
    outline: none;
    font-weight: 700;
    background: #fff;
    box-sizing: border-box;
}

.discount-box input:focus,
.payment-box select:focus {
    border-color: var(--dark-black);
    box-shadow: 0 0 0 3px rgba(111, 78, 55, 0.12);
}

.cart-breakdown {
    background: #fff8ef;
    border-radius: 18px;
    padding: 14px;
    margin: 16px 0;
    border: 1px solid rgba(111, 78, 55, 0.1);
}

.cart-breakdown div {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 14px;
}

.cart-breakdown span {
    color: #8A7F78;
    font-weight: 700;
}

.cart-breakdown strong {
    color: var(--dark-black);
    font-weight: 900;
}

/* ================= ORDERS / REPORTS SECTION ================= */

/* Orders */
.order-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}
.order-info-card {
    background: var(--light-bg);
    border: 1px solid rgba(138,165,1,0.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(43, 27, 23, 0.07);
}
.order-info-card h3,
.order-items-card h3 {
    margin: 0 0 18px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 800;
}
.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(138,165,1,0.12);
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--primary-green); font-weight: 700; font-size: 14px; }
.info-row strong { color: var(--text-dark); font-weight: 800; font-size: 14px; text-align: right; }

.order-summary {
    width: 320px;
    margin-left: auto;
    margin-top: 20px;
}
.order-summary div { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text-dark); font-size: 14px; }
.order-summary .grand-total {
    border-top: 2px solid var(--light-bg);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 900;
}

.btn-view {
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

/* Inventory */
.low-stock { background: #ffe5e5; }
.stock-badge { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.stock-badge.in { background: #d4f8e8; color: var(--success-green); }
.stock-badge.out { background: #ffe0e0; color: var(--warning-red); }

/* Reports */
.report-filter {
    background: var(--light-bg);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: end;
    gap: 16px;
    box-shadow: 0 14px 34px rgba(43, 27, 23, 0.07);
}
.reports-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.report-card {
    background: linear-gradient(145deg, var(--light-bg), #f8f3eb);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
    min-height: 360px;
    transition: 0.3s;
}
.report-card.full { grid-column: 1 / -1; }
.report-card:hover { transform: translateY(-3px); }
.report-card canvas { width: 100% !important; height: 280px !important; }
.report-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(138,165,1,0.12); }
.report-row:last-child { border-bottom: none; }
.report-row strong { color: var(--text-dark); font-weight: 800; }
.report-row small { display: block; color: var(--primary-green); margin-top: 4px; font-size: 12px; }
.report-row span { color: var(--primary-green); font-weight: 900; }

.section-title h3 { font-size: 18px; font-weight: 900; color: var(--text-dark); }
.section-title span { font-size: 12px; background: var(--primary-green); color: var(--dark-black); }

/* ============== SETTINGS SECTION ================= */
.settings-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
}

.settings-preview {
    background: linear-gradient(145deg, var(--dark-black));
    color: var(--text-light);
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 16px 38px var(--dark-black);
    height: fit-content;
}

.settings-logo {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    background: var(--primary-green);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.settings-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.settings-preview h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
}

.settings-preview p {
    margin: 10px 0;
    color: rgba(245, 230, 202, 0.8);
    font-size: 14px;
}

.settings-preview span {
    font-size: 14px;
    font-weight: 800;
}

/* DEMO */
.demo-login-box {
    text-align: center;
    margin-top: 20px;
    padding: 15px 10px;
    background: #f8f9f4;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.demo-title {
    font-size: 16px;
    font-weight: 700;
    color: #2B1B17;
    margin-bottom: 12px;
}

.demo-btn {
    display: inline-block;
    margin: 6px 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    color: #fff;
}

.demo-btn.owner {
    background: #8AA501;
}

.demo-btn.salesman {
    background: black;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    opacity: 0.9;
}



/* ============== RESPONSIVE ============= */

/* Tablet */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
        padding: 90px 22px 24px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section.large {
        grid-row: auto;
    }
}




/* Mobile */

@media (max-width: 991px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section.large {
        grid-row: auto;
    }
}



/* ============== RESPONSIVE SECTION FOR 768PX DEVICES ============== */
@media (max-width: 768px) {
    /* Sidebar adjustments */
   .sidebar { left: -260px; position: fixed; top: 65px; width: 260px; height: 100%; transition: left 0.3s ease; z-index: 9999; }
  .sidebar.open { left: 0; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9998; }
  .sidebar-overlay.active { display: block; }

  .header-left .logo-icon { display: none; }
  .header-center { display: flex; justify-content: center; flex: 1; }
  .logo-icon-mobile { display: block; max-height: 40px; }
  .nav-toggle { display: inline-flex; font-size: 16px; cursor: pointer; background: none; border: none; margin-right: 10px; }

    /* Grids stacking */
    .dashboard-cards, .dashboard-grid, .profile-grid, .category-grid, .item-grid, .reports-grid {
        grid-template-columns: 1fr !important;
    }

    .profile-form-card.full, .report-card.full, .category-card.full, .item-card.full {
        grid-column: 1 / -1 !important;
    }

    /* POS container adjustments */
    .pos-container { grid-template-columns: 1fr !important; gap: 18px; }
    .pos-items { grid-template-columns: 1fr !important; gap: 12px; }
    .pos-cart { position: static; max-height: none; top: auto; }

    /* Buttons & input resizing */
    .btn-add, .btn-save, .btn-checkout { width: 100%; }
    .form-group input, .form-group select, .form-group textarea { font-size: 14px; }

   /* Login card width and padding */
    .login-card {
        width: 90%;
        padding: 24px;
    }

    /* Login logo adjustments */
    .login-brand img {
        max-width: 200px;   /* scale down for mobile */
        max-height: 120px;  /* maintain aspect ratio */
        width: auto;
        height: auto;
    }
}




/* Small mobile */
@media (max-width: 480px) {
    .header {
        padding: 0 10px;
    }

    .logo-text {
        font-size: 18px;
    }

    .sidebar {
        width: 230px;
        left: -250px;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100%;
        padding: 80px 10px 16px;
        box-sizing: border-box;
    }


    .main-content {
        margin-left: 56px;
        width: calc(100% - 56px);
        padding: 80px 10px 16px;
    }

    .dashboard-header h1 {
        font-size: 21px;
    }

    .stat-card {
        align-items: flex-start;
    }

    .stat-card h2 {
        font-size: 21px;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-item strong {
        align-self: flex-start;
    }

    .page-header h1 {
        font-size: 21px;
    }

    .form-card,
    .table-card {
        padding: 12px;
    }

    .data-table {
        min-width: 680px;
    }

    .status-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    .form-card {
        padding: 16px;
        border-radius: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group input,
    .form-group select {
        height: 42px;
        font-size: 13px;
        border-radius: 10px;
    }

    .form-actions {
        width: 100%;
    }

    .btn-save {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }

    .table-card {
        padding: 14px;
        border-radius: 18px;
        overflow-x: auto;
    }

    .data-table {
        min-width: 680px;
    }

    .data-table th,
    .data-table td {
        padding: 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .low-stock td {
        background: #ffe5e5;
    }

    .status-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    .btn-edit,
    .btn-delete {
        display: inline-block;
        font-size: 11px;
        padding: 6px 9px;
        margin: 2px;
        white-space: nowrap;
    }

    .form-card,
    .table-card {
        padding: 12px;
    }

    .data-table {
        min-width: 640px;
    }

    .page-header h1 {
        font-size: 21px;
    }

    .btn-add,
    .btn-light {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .category-img {
        height: 135px;
    }

    .category-body h3 {
        font-size: 16px;
    }

    .category-actions {
        flex-direction: column;
    }

    .category-actions .btn-view,
    .category-actions .btn-edit,
    .category-actions .btn-delete {
        width: 100%;
        flex: none;
        box-sizing: border-box;
    }

    .item-count,
    .status-badge {
        font-size: 11px;
    }

    .item-img {
        height: 135px;
    }

    .item-actions {
        flex-direction: column;
    }

    .item-actions .btn-edit,
    .item-actions .btn-delete {
        width: 100%;
        flex: none;
        box-sizing: border-box;
    }

    .item-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-meta strong {
        font-size: 17px;
    }

    .data-table {
        min-width: 840px;
    }

    .order-info-card,
    .table-card {
        padding: 12px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .info-row strong {
        text-align: left;
    }

    .order-summary {
        padding: 12px;
    }

    .pos-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .pos-menu,
    .pos-cart {
        padding: 12px;
    }

    .pos-items {
        grid-template-columns: 1fr;
    }

    .pos-item {
        display: grid;
        grid-template-columns: 72px 1fr;
        gap: 10px;
        text-align: left;
        align-items: center;
    }

    .pos-item-img {
        width: 64px;
        height: 64px;
        margin: 0;
    }

    .pos-item h4 {
        min-height: auto;
    }

    .pos-item p {
        margin: 4px 0 8px;
    }

    .pos-item .add-btn {
        grid-column: 1 / -1;
    }

    .cart-breakdown div,
    .cart-total {
        gap: 10px;
    }

    .profile-card,
    .profile-form-card {
        padding: 14px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-avatar img {
        width: 58px;
        height: 58px;
    }

    .profile-card h2 {
        font-size: 18px;
    }

    .profile-form-card h3 {
        font-size: 17px;
    }

    .report-filter,
    .report-card {
        padding: 12px;
    }

    .report-card canvas {
        height: 210px !important;
    }

    .report-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .settings-preview,
    .settings-grid .form-card {
        padding: 12px;
    }

    .settings-logo {
        width: 78px;
        height: 78px;
    }

    .settings-logo img {
        width: 58px;
        height: 58px;
    }

    .settings-preview h2 {
        font-size: 18px;
    }

    .table-card,
    .form-card {
        padding: 12px;
    }

    .data-table {
        min-width: 700px;
    }

    .alert-error {
        font-size: 12px;
    }

    .stock-badge {
        font-size: 10px;
    }

    .page-header h1 {
        font-size: 21px;
    }

    .form-card,
    .table-card {
        padding: 12px;
    }

    .data-table {
        min-width: 680px;
    }

    .main-content>h1 {
        font-size: 21px;
    }

    .form-card,
    .table-card {
        padding: 12px;
    }

    .data-table {
        min-width: 600px;
    }

    .login-body {
        padding: 14px 10px;
    }

    .login-card {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .login-brand img {
        max-width: 150px;   /* scale down for mobile */
        max-height: 120px;  /* maintain aspect ratio */
        width: auto;
        height: auto;
    }

    .login-brand h1 {
        font-size: 24px;
    }

    .login-brand p {
        font-size: 12px;
    }

    .login-card .form-group input {
        height: 42px;
    }

    .login-btn {
        height: 42px;
        font-size: 13px;
    }
}




@media (max-width: 1024px) {
    .pos-container {
        grid-template-columns: 1fr;
    }

    .pos-cart {
        position: static;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .report-card.full {
        grid-column: auto;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}