:root {
    --navy: #102c47;
    --navy-deep: #071d32;
    --teal: #17b6a3;
    --teal-dark: #0e9b8c;
    --mint: #e9faf6;
    --blue-soft: #edf5ff;
    --purple-soft: #f4efff;
    --ink: #183149;
    --muted: #7890a3;
    --line: #e5edf2;
    --surface: #ffffff;
    --page: #f6fafb;
    --danger: #c84b5b;
    --shadow: 0 18px 55px rgba(16, 44, 71, 0.08);
    --radius: 18px;
    --font-body: "DM Sans", sans-serif;
    --font-heading: "Manrope", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--page);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    font-family: var(--font-heading);
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -1.3px;
    line-height: 1.1;
}

h2 {
    margin-bottom: 0;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.page-subtitle {
    margin-bottom: 0;
    color: var(--muted);
}

.admin-app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 30;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 270px;
    flex-direction: column;
    padding: 28px 18px 20px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0%, rgba(23, 182, 163, 0.28), transparent 32%),
        var(--navy);
}

.sidebar-top,
.sidebar-brand,
.sidebar-user,
.topbar,
.topbar-actions,
.topbar-profile,
.page-heading-row,
.panel-heading,
.stat-meta,
.quick-action,
.table-user,
.table-actions,
.filter-bar,
.form-actions {
    display: flex;
    align-items: center;
}

.sidebar-top {
    justify-content: space-between;
    margin-bottom: 62px;
}

.sidebar-brand {
    gap: 11px;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--navy);
    border-radius: 12px;
    background: var(--teal);
    box-shadow: 0 10px 26px rgba(23, 182, 163, 0.25);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
}

.sidebar-label {
    margin: 0 14px 13px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.sidebar-nav {
    display: grid;
    gap: 7px;
}

.nav-item {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 13px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.67);
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    transition: 180ms ease;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    box-shadow: inset 3px 0 0 var(--teal);
}

.nav-icon {
    width: 20px;
    color: var(--teal);
    font-size: 18px;
    text-align: center;
}

.sidebar-bottom {
    margin-top: auto;
}

.support-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 4px 22px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
}

.support-dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(23, 182, 163, 0.14);
}

.support-card strong,
.support-card small {
    display: block;
}

.support-card strong {
    margin-bottom: 2px;
    font-size: 12px;
}

.support-card small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
}

.sidebar-user {
    gap: 10px;
    padding: 13px 5px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--navy);
    border-radius: 50%;
    background: #bff3e9;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
}

.avatar-small {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 11px;
}

.sidebar-user-text {
    min-width: 0;
    flex: 1;
}

.sidebar-user-text strong,
.sidebar-user-text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-text strong {
    color: #fff;
    font-size: 12px;
}

.sidebar-user-text small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
}

.logout-icon,
.sidebar-close {
    color: rgba(255, 255, 255, 0.58);
    border: 0;
    background: transparent;
    font-size: 20px;
}

.sidebar-close {
    display: none;
    font-size: 25px;
}

.main-content {
    width: calc(100% - 270px);
    min-width: 0;
    margin-left: 270px;
}

.topbar {
    position: sticky;
    z-index: 15;
    top: 0;
    min-height: 80px;
    justify-content: space-between;
    padding: 0 25px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.91);
    backdrop-filter: blur(18px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb strong {
    color: #c2d0d8;
}

.breadcrumb span:last-child {
    color: var(--ink);
    font-weight: 700;
}

.topbar-actions {
    gap: 24px;
}

.icon-button {
    position: relative;
    width: 38px;
    height: 38px;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    font-size: 20px;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
}

.topbar-profile {
    gap: 9px;
}

.topbar-profile strong,
.topbar-profile small {
    display: block;
}

.topbar-profile strong {
    font-size: 12px;
}

.topbar-profile small {
    color: var(--muted);
    font-size: 11px;
}

.mobile-menu-button {
    display: none;
    width: 38px;
    height: 38px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}

.mobile-menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: var(--navy);
}

.page-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 44px 25px 64px;
}

.page-heading-row {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    transition: 180ms ease;
}

.primary-button {
    color: var(--navy);
    border: 1px solid var(--teal);
    background: var(--teal);
    box-shadow: 0 9px 20px rgba(23, 182, 163, 0.18);
}

.primary-button:hover {
    border-color: var(--teal-dark);
    background: var(--teal-dark);
    transform: translateY(-1px);
}

.secondary-button {
    color: var(--navy);
    border: 1px solid var(--line);
    background: #fff;
}

.secondary-button:hover {
    border-color: #bcd1d8;
    background: #fafdfe;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.stat-card,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stat-card {
    min-width: 0;
    padding: 15px;
}

.stat-card-primary {
    color: #fff;
    border-color: var(--navy);
    background:
        radial-gradient(circle at 100% 0, rgba(23, 182, 163, 0.3), transparent 38%),
        var(--navy);
}

.stat-icon {
    display: inline-grid;
    width: 45px;
    height: 45px;
    margin-bottom: 21px;
    place-items: center;
    color: var(--navy);
    border-radius: 10px;
    background: var(--teal);
    font-size: 26px;
}

.stat-icon-soft {
    color: var(--teal-dark);
    background: var(--mint);
}

.stat-icon-blue {
    color: #3772b7;
    background: var(--blue-soft);
}

.stat-icon-purple {
    color: #7252bd;
    background: var(--purple-soft);
}

.stat-card-top span,
.stat-card-top strong {
    display: block;
}

.stat-card-top span {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.stat-card-primary .stat-card-top span {
    color: rgba(255, 255, 255, 0.63);
}

.stat-card-top strong {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 31px;
    letter-spacing: -1px;
}

.stat-card-primary .stat-card-top strong {
    color: #fff;
}

.stat-meta {
    justify-content: space-between;
    gap: 8px;
    margin-top: 19px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.stat-card-primary .stat-meta {
    color: rgba(255, 255, 255, 0.53);
}

.trend-up {
    color: var(--teal-dark);
}

.stat-card-primary .trend-up {
    color: var(--teal);
}

.trend-neutral {
    color: #7190a0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 22px;
    margin-bottom: 22px;
}

.panel {
    min-width: 0;
    padding: 27px;
}

.panel-heading {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.panel-action {
    padding: 5px 10px;
    color: var(--teal-dark);
    border-radius: 30px;
    background: var(--mint);
    font-size: 11px;
    font-weight: 800;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #eef3f5;
}

.activity-item:first-of-type {
    padding-top: 0;
}

.activity-item:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.activity-icon {
    display: inline-grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    color: var(--teal-dark);
    border-radius: 9px;
    background: var(--mint);
    font-weight: 800;
}

.activity-copy {
    min-width: 0;
}

.activity-copy strong,
.activity-copy span {
    display: block;
}

.activity-copy strong {
    color: var(--ink);
    font-size: 12px;
}

.activity-copy span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.quick-actions {
    display: grid;
    gap: 9px;
}

.quick-action {
    min-width: 0;
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid #eef3f5;
}

.quick-action:last-child {
    border-bottom: 0;
}

.quick-action-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: var(--teal-dark);
    border-radius: 9px;
    background: var(--mint);
    font-size: 17px;
    font-weight: 800;
}

.quick-action>span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action strong {
    color: var(--navy);
    font-size: 12px;
}

.quick-action small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arrow {
    color: var(--muted);
    font-size: 17px;
}

.users-panel {
    overflow: hidden;
}

.text-link {
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.data-table th {
    padding: 0 14px 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-align: left;
    text-transform: uppercase;
}

.data-table td {
    padding: 15px 14px;
    border-bottom: 1px solid #eef3f5;
    color: var(--muted);
    font-size: 14px;
    vertical-align: middle;
}

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

.data-table th:first-child,
.data-table td:first-child {
    padding-left: 0;
}

.data-table th:last-child,
.data-table td:last-child {
    padding-right: 0;
}

.table-user {
    min-width: 200px;
    gap: 10px;
}

.table-user>div {
    min-width: 0;
}

.table-user strong,
.table-user small {
    display: block;
}

.table-user strong {
    color: var(--ink);
    font-size: 12px;
}

.table-user small {
    overflow: hidden;
    max-width: 220px;
    margin-top: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
}

.role-badge {
    color: #627a8a;
    background: #f0f5f7;
}

.status-active {
    color: var(--teal-dark);
    background: var(--mint);
}

.status-inactive {
    color: var(--danger);
    background: #fff0f2;
}

.status-badge i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.text-right {
    text-align: right !important;
}

.table-actions {
    justify-content: flex-end;
    gap: 12px;
}

.action-link {
    padding: 4px;
    color: var(--teal-dark);
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
}

.danger-link {
    color: var(--danger);
}

.table-empty {
    padding: 34px !important;
    text-align: center;
}

.empty-state {
    display: grid;
    min-height: 150px;
    place-items: center;
    color: var(--muted);
    text-align: center;
}

.empty-state span {
    display: block;
    font-size: 28px;
}

.empty-state p {
    margin: 4px 0 0;
    font-size: 12px;
}

.filter-bar {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.search-input {
    display: flex;
    min-width: min(100%, 300px);
    height: 44px;
    flex: 1;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.search-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.select-input,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    background: #fff;
    transition: 180ms ease;
}

.select-input {
    width: 160px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.search-input:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(23, 182, 163, 0.11);
}

.form-panel {
    max-width: 900px;
}

.admin-form {
    display: grid;
    gap: 27px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px;
}

.form-field {
    min-width: 0;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

.form-field label small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
}

.form-checkbox {
    width: fit-content;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.checkbox-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
}

.field-error {
    display: block;
    margin-top: 5px;
    color: var(--danger);
    font-size: 11px;
}

.form-actions {
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.form-section-title {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.form-section-title h2 {
    font-size: 18px;
}

.settings-divider {
    margin-top: 10px;
}

.settings-switch-list {
    display: grid;
    gap: 12px;
}

.settings-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.settings-switch span {
    min-width: 0;
}

.settings-switch strong,
.settings-switch small {
    display: block;
}

.settings-switch strong {
    color: var(--navy);
    font-size: 13px;
}

.settings-switch small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.settings-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-switch i {
    position: relative;
    display: block;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
    border-radius: 30px;
    background: #d8e4e8;
    transition: 180ms ease;
}

.settings-switch i::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: 180ms ease;
}

.settings-switch input:checked+i {
    background: var(--teal);
}

.settings-switch input:checked+i::after {
    transform: translateX(18px);
}

.alert {
    margin-bottom: 20px;
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
}

.alert-success {
    color: #167668;
    border-color: #bdece4;
    background: #ecfcf8;
}

.alert-danger {
    color: #aa3849;
    border-color: #f2c6cc;
    background: #fff2f4;
}

.page-alert {
    margin-top: -14px;
}

.pagination-wrap {
    padding-top: 20px;
}

.pagination-wrap nav {
    display: flex;
    justify-content: center;
}

.pagination-wrap svg {
    width: 17px;
}

.auth-page {
    min-height: 100vh;
    background: var(--page);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(400px, 0.9fr) minmax(420px, 1.1fr);
}

.auth-visual {
    position: relative;
    display: flex;
    min-height: 600px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 44px clamp(30px, 6vw, 86px);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(7, 29, 50, 0.84), rgba(16, 73, 87, 0.79)),
        url("https://products.pearlorganisation.in/api/public-products/pearl-ai/photo?q=modern+pharmacy+interior+green+healthcare&w=1200&h=1600&i=14") center / cover;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(23, 182, 163, 0.26), transparent 30%);
    pointer-events: none;
}

.auth-brand,
.auth-visual-content,
.auth-stat {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
}

.auth-visual-content {
    max-width: 470px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 80px 0 30px;
}

.auth-visual-content .eyebrow {
    color: var(--teal);
}

.auth-visual-content h1 {
    max-width: 500px;
    margin-bottom: 20px;
    color: #fff;
    font-size: clamp(38px, 4vw, 62px);
}

.auth-visual-content p {
    max-width: 410px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.auth-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.auth-stat strong {
    color: var(--teal);
    font-family: var(--font-heading);
    font-size: 28px;
}

.auth-stat span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.auth-panel {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: 40px;
    background: #fff;
}

.auth-card {
    width: min(100%, 450px);
}

.auth-heading {
    margin: 25px 0 28px;
}

.auth-heading h2 {
    margin-bottom: 9px;
    font-size: 34px;
    letter-spacing: -1px;
}

.auth-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-form {
    display: grid;
    gap: 9px;
}

.auth-form label:not(.checkbox-row) {
    margin-top: 9px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

/* .auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    background: #fff;
} */

.auth-form input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(23, 182, 163, 0.11);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 65px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 4px;
    color: var(--teal-dark);
    border: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    transform: translateY(-50%);
}

.auth-submit {
    width: 100%;
    height: 50px;
    margin-top: 14px;
    justify-content: space-between;
    padding: 0 17px;
}

.auth-footer {
    margin: 27px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-weight: 800;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 1120px) {

    .topbar,
    .page-content {
        padding-right: 28px;
        padding-left: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 220ms ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 25;
        inset: 0;
        display: block;
        visibility: hidden;
        background: rgba(7, 29, 50, 0.45);
        opacity: 0;
        transition: 220ms ease;
    }

    .sidebar-backdrop.is-visible {
        visibility: visible;
        opacity: 1;
    }

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

    .mobile-menu-button {
        display: block;
    }

    .topbar {
        min-height: 70px;
    }

    .breadcrumb {
        display: none;
    }

    .topbar-actions {
        margin-left: auto;
    }

    .topbar-profile>div {
        display: none;
    }

    .page-content {
        padding-top: 32px;
    }

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

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .mobile-brand {
        display: flex;
    }
}

@media (max-width: 560px) {

    .topbar,
    .page-content {
        padding-right: 10px;
        gap: 5px;
        padding-left: 10px;
    }

    .page-heading-row {
        display: block;
    }

    .page-heading-row .primary-button,
    .page-heading-row .secondary-button {
        width: 100%;
        margin-top: 20px;
    }

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

    .panel,
    .stat-card {
        padding: 20px;
    }

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

    .filter-bar {
        align-items: stretch;
    }

    .search-input,
    .select-input,
    .filter-bar .secondary-button {
        width: 100%;
    }

    .settings-switch {
        align-items: flex-start;
    }

    .settings-switch i {
        margin-top: 2px;
    }

    .auth-panel {
        padding: 28px 20px;
    }

    .auth-heading h2 {
        font-size: 30px;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .form-actions>* {
        width: 100%;
    }




}

.auth-form input:not([type="checkbox"]) {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #e8effc;
    font: inherit;
    outline: none;
}

.auth-form input:not([type="checkbox"]):focus {
    border-color: #18b6a0;
    box-shadow: 0 0 0 3px rgba(24, 182, 160, 0.15);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 70px;
    /* toggle button ke liye jagah */
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #14a38f;
    font-weight: 700;
    cursor: pointer;
}


.stats-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.stats-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .stats-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.content-status-panel {
    margin-bottom: 24px;
}


/* Apne admin CSS file ke end mein add karo. Jo classes pehle se hain unhe skip kar sakte ho. */
.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: #0f9d8a;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none
}

.primary-button:hover {
    filter: brightness(.95)
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px
}

.alert-success {
    background: #e6f7f2;
    color: #0b7a6a
}

.alert-error {
    background: #fdecec;
    color: #b42318
}

.alert-error ul {
    margin: 6px 0 0 18px
}

.filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap
}

.filter-row select,
.form-field input[type=text],
.form-field input[type=number],
.form-field input[type=file],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbe3e8;
    border-radius: 10px;
    font: inherit;
    background: #fff
}

.filter-row select {
    width: auto;
    min-width: 200px
}

.table-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #eef2f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa7b0
}

.row-actions {
    display: flex;
    gap: 14px;
    align-items: center
}

.row-actions form {
    margin: 0
}

.link-edit {
    color: #0b6bcb;
    font-size: 13px;
    text-decoration: none
}

.link-danger {
    background: none;
    border: 0;
    color: #d92d20;
    font-size: 13px;
    cursor: pointer;
    padding: 0
}

.form-panel {
    padding: 24px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.form-field-full {
    grid-column: 1 / -1
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px
}

.form-field label small,
.form-section-title small {
    font-weight: 400;
    color: #7b8a94
}

.form-preview {
    display: block;
    margin-top: 10px;
    max-width: 140px;
    border-radius: 8px
}

.form-section-title {
    margin: 28px 0 14px;
    font-size: 15px
}

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

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
    margin-top: 8px
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 4px 16px;
    padding: 12px;
    border: 1px solid #dbe3e8;
    border-radius: 10px;
    background: #fff
}

.check-grid .check-label {
    margin-top: 0
}

@media(max-width:700px) {
    .form-grid {
        grid-template-columns: 1fr
    }
}


/* ===== Sidebar: menu scroll, brand aur bottom card fixed ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    /* mobile browsers ke address bar ke liye */
    overflow: hidden;
    /* scroll sirf nav ke andar hoga */
}

.sidebar-top,
.sidebar-label,
.sidebar-bottom {
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    /* zaroori: iske bina flex child scroll nahi hota */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 8px;
    overscroll-behavior: contain;
}

/* Patla, clean scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .22);
    border-radius: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .38);
}

.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

/* Chhoti screen par bottom card jagah na ghere */
@media (max-height: 760px) {
    .sidebar-bottom .support-card {
        display: none;
    }
}


/* ===== Password field with show/hide eye (shared: auth pages + admin) ===== */
.password-input {
    position: relative;
    display: block;
    width: 100%;
}

.password-input input,
.auth-form .password-input input {
    width: 100%;
    padding-right: 46px;
    box-sizing: border-box;
}

.password-input .password-eye,
.auth-form .password-input .password-eye {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: auto;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    font-size: 15px;
    line-height: 1;
}

.password-input .password-eye:hover,
.password-input .password-eye:focus-visible {
    color: #0d9488;
    background: transparent;
    outline: none;
}


/* ===== Dynamic brand (logo + site name + tagline) ===== */
.sidebar-brand .brand-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 4px;
    border-radius: 10px;
    background: #fff;
}

.sidebar-brand .brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-brand .brand-name,
.sidebar-brand .brand-tagline {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-brand .brand-tagline {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 500;
    opacity: .7;
}

/* Settings page logo preview */
.settings-logo-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.settings-logo-preview img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.settings-logo-remove {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}


/* ===== Desktop sidebar collapse ===== */
.desktop-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

.desktop-sidebar-toggle:hover {
    color: #0d9488;
    border-color: #0d9488;
}

@media (min-width: 1025px) {
    .desktop-sidebar-toggle {
        display: inline-flex;
    }

    .sidebar,
    .main-content {
        transition: width .25s ease, margin-left .25s ease;
    }

    /* Sidebar + content width */
    .admin-app.sidebar-collapsed .sidebar {
        width: 76px;
    }

    .admin-app.sidebar-collapsed .main-content {
        margin-left: 76px;
        width: calc(100% - 76px);
    }

    /* Hide texts, keep icons */
    .admin-app.sidebar-collapsed .brand-text,
    .admin-app.sidebar-collapsed .brand-name,
    .admin-app.sidebar-collapsed .sidebar-label,
    .admin-app.sidebar-collapsed .nav-item span,
    .admin-app.sidebar-collapsed .support-card>div,
    .admin-app.sidebar-collapsed .sidebar-user-text {
        display: none;
    }

    .admin-app.sidebar-collapsed .sidebar-top,
    .admin-app.sidebar-collapsed .sidebar-brand {
        justify-content: center;
    }

    .admin-app.sidebar-collapsed .nav-item {
        justify-content: center !important;
        padding: 10px 0 !important;
    }

    .admin-app.sidebar-collapsed .sidebar-user {
        flex-direction: column;
        gap: 10px;
    }

    .admin-app.sidebar-collapsed .support-card {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .admin-account-page {
        padding: 0 !important;
    }

    .ui-members-page {
        padding: 0 !important;
    }

    .team-page {
        padding: 0 !important;
    }

    .stats-grid-6 {
        grid-template-columns: repeat(1, 1fr);
    }

    .topbar-actions {
        gap: 5px;
        font-size: 12px;
    }

    .icon-button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }

}



/* ===== Bulk select + Recycle Bin ===== */
/* Isko apni admin CSS file ke end mein paste kar do (ya alag file ki tarah link karo) */

.bulk-bar {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 1px solid #bfe6e1;
    border-radius: 12px;
    background: #effaf8;
    box-shadow: 0 6px 20px rgba(16, 44, 71, .08);
}
.bulk-bar[hidden] { display: none; }
.bulk-bar-count { margin-right: auto; color: #107f74; font-size: 14px; }

.bulk-btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.bulk-btn-danger:hover { background: #dc2626; }

.ui-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: #0d9488; cursor: pointer; }
.ui-table .ui-check-col { width: 40px; }
.ui-table tbody tr.is-selected { background: #f0fbf9; }

/* Undo banner */
.bulk-undo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bulk-undo > span { margin-right: auto; }
.bulk-undo-btn {
    padding: 6px 14px; border: 0; border-radius: 8px; background: #065f46; color: #fff;
    font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.bulk-undo-btn:hover { background: #064e3b; }
.bulk-undo-link { color: #065f46; font-size: 13px; font-weight: 700; text-decoration: underline; }

/* Recycle bin tabs */
.bin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.bin-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 999px;
    background: #fff; color: #475569; font-size: 13px; font-weight: 600; text-decoration: none;
}
.bin-tab:hover { background: #f1f5f9; }
.bin-tab.active { background: #0d9488; border-color: #0d9488; color: #fff; }
.bin-tab span { padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, .08); font-size: 11px; }
