/* Glow Care - Complete CSS */
:root {
    --pink-50: #fdf2f8; --pink-100: #fce7f3; --pink-200: #fbcfe8; --pink-300: #f9a8d4;
    --pink-400: #f472b6; --pink-500: #ec4899; --pink-600: #db2777; --pink-700: #be185d;
    --pink-800: #9d174d; --pink-900: #831843;
    --sky-50: #f0f9ff; --sky-100: #e0f2fe; --sky-200: #bae6fd; --sky-300: #7dd3fc;
    --sky-400: #38bdf8; --sky-500: #0ea5e9; --sky-600: #0284c7; --sky-700: #0369a1;
    --indigo-950: #1e1b4b;
    --emerald-50: #ecfdf5; --emerald-100: #d1fae5; --emerald-500: #10b981; --emerald-600: #059669; --emerald-700: #047857;
    --red-50: #fef2f2; --red-500: #ef4444; --red-600: #dc2626;
    --amber-500: #f59e0b; --violet-500: #8b5cf6; --rose-500: #f43f5e;
    --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-300: #d1d5db;
    --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563; --gray-700: #374151;
    --gray-800: #1f2937; --gray-900: #111827;
    --white: #ffffff; --black: #000000;
    --gradient: linear-gradient(to right, var(--pink-500), var(--sky-500));
    --gradient-br: linear-gradient(to bottom right, var(--pink-500), var(--sky-500));
    --bg-gradient: linear-gradient(to bottom right, var(--pink-50), #faf5ff, var(--sky-50));
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--indigo-950); background: var(--bg-gradient); min-height: 100vh; font-size: 14px; line-height: 1.5; }

/* App Layout */
#app { display: flex; min-height: 100vh; }
.main-content { flex: 1; margin-left: 260px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pink-100); position: sticky; top: 0; z-index: 50; }
.topbar-menu { display: none; background: none; border: none; color: var(--indigo-950); cursor: pointer; padding: 4px; border-radius: 6px; }
.topbar-menu:hover { background: var(--pink-50); }
.page-title { font-size: 16px; font-weight: 600; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.content-area { flex: 1; padding: 20px; overflow-y: auto; }

/* Sidebar */
.sidebar { width: 260px; background: var(--indigo-950); color: var(--white); position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column; transition: transform 0.3s ease; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }
.sidebar-header { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-logo { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-br); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.sidebar-logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sidebar-brand { flex: 1; min-width: 0; }
.sidebar-title { display: block; font-size: 15px; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sidebar-subtitle { display: block; font-size: 10px; color: var(--gray-400); }
.sidebar-close { display: none; background: none; border: none; color: var(--gray-400); font-size: 20px; cursor: pointer; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px; }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-user { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sidebar-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient-br); display: flex; align-items: center; justify-content: center; color: white; font-size: 12px; font-weight: 600; }
.sidebar-user-info { flex: 1; }
.sidebar-user-name { display: block; font-size: 12px; font-weight: 500; }
.sidebar-user-role { display: block; font-size: 10px; color: var(--gray-400); text-transform: capitalize; }
.btn-logout { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; background: rgba(255,255,255,0.1); border: none; color: var(--gray-400); border-radius: var(--radius); cursor: pointer; font-size: 12px; transition: all 0.2s; }
.btn-logout:hover { background: rgba(255,255,255,0.15); color: white; }

/* Sidebar Menu Items */
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius); color: var(--gray-400); font-size: 13px; cursor: pointer; transition: all 0.2s; text-decoration: none; border: none; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-item.active { background: var(--gradient-br); color: white; font-weight: 500; box-shadow: var(--shadow-md); }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Cards */
.card { background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { padding: 12px 16px; border-bottom: 1px solid var(--pink-100); }
.card-title { font-size: 14px; font-weight: 600; color: var(--indigo-950); }
.card-content { padding: 16px; }
.card-footer { padding: 12px 16px; border-top: 1px solid var(--pink-100); }

/* Stat Card */
.stat-card { background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 16px; }
.stat-card-label { font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }
.stat-card-value { font-size: 20px; font-weight: 700; color: var(--indigo-950); }
.stat-card-icon { width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.stat-card-change { font-size: 11px; margin-top: 2px; }
.stat-card-change.positive { color: var(--emerald-600); }
.stat-card-change.negative { color: var(--red-600); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--radius); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; white-space: nowrap; text-decoration: none; }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn-xs { padding: 2px 8px; font-size: 10px; }
.btn-lg { padding: 10px 24px; font-size: 15px; }
.btn-primary { background: var(--gradient); color: white; border: 0; box-shadow: var(--shadow-sm); }
.btn-primary:hover { opacity: 0.9; box-shadow: var(--shadow-md); }
.btn-secondary { background: white; color: var(--indigo-950); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-50); }
.btn-outline { background: transparent; color: var(--indigo-950); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); }
.btn-danger { background: var(--red-600); color: white; border: 0; }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost { background: transparent; color: var(--indigo-950); border: 0; }
.btn-ghost:hover { background: var(--pink-50); }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: var(--radius); }
.btn-icon-sm { width: 24px; height: 24px; padding: 0; border-radius: 4px; }
.btn-gradient { background: var(--gradient); color: white; border: 0; }
.btn-gradient:hover { opacity: 0.9; }
.btn-pink { background: var(--pink-500); color: white; border: 0; }
.btn-sky { background: var(--sky-500); color: white; border: 0; }
.btn-emerald { background: var(--emerald-600); color: white; border: 0; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Forms */
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--indigo-950); margin-bottom: 4px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; color: var(--indigo-950); background: white; transition: all 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--pink-500); box-shadow: 0 0 0 3px rgba(236,72,153,0.1); }
.form-input-sm { padding: 4px 8px; font-size: 11px; }
.form-textarea { resize: vertical; min-height: 60px; }
.form-select { appearance: auto; }

/* Table */
.table-container { overflow-x: auto; border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; }
th { padding: 8px 12px; text-align: left; font-size: 11px; font-weight: 600; color: var(--pink-700); background: var(--pink-50); border-bottom: 2px solid var(--pink-200); white-space: nowrap; }
td { padding: 8px 12px; font-size: 12px; border-bottom: 1px solid var(--pink-100); }
tr:hover td { background: rgba(253,242,248,0.3); }
th.text-right, td.text-right { text-align: right; }
th.text-center, td.text-center { text-align: center; }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 9999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.badge-pink { background: var(--pink-100); color: var(--pink-700); }
.badge-sky { background: var(--sky-100); color: var(--sky-700); }
.badge-emerald { background: var(--emerald-100); color: var(--emerald-700); }
.badge-red { background: var(--red-50); color: var(--red-600); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-violet { background: #ede9fe; color: #5b21b6; }
.badge-outline { background: transparent; border: 1px solid var(--gray-300); color: var(--gray-600); }

/* Dialog/Modal */
.dialog-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog-box { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); max-width: 500px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; }
.dialog-box.lg { max-width: 700px; }
.dialog-box.xl { max-width: 900px; }
.dialog-box.full { max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--pink-100); }
.dialog-header h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dialog-close { background: none; border: none; font-size: 20px; color: var(--gray-400); cursor: pointer; padding: 4px; border-radius: 4px; }
.dialog-close:hover { background: var(--gray-100); color: var(--gray-700); }
.dialog-content { padding: 20px; overflow-y: auto; flex: 1; }
.dialog-footer { padding: 12px 20px; border-top: 1px solid var(--pink-100); display: flex; justify-content: flex-end; gap: 8px; }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--pink-50); border-radius: var(--radius); margin-bottom: 16px; }
.tab { flex: 1; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; text-align: center; cursor: pointer; color: var(--gray-500); transition: all 0.2s; border: none; background: none; }
.tab:hover { color: var(--indigo-950); }
.tab.active { background: var(--gradient); color: white; box-shadow: var(--shadow-sm); }

/* Grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Toast */
#toast-container { position: fixed; top: 16px; right: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 13px; animation: slideIn 0.3s ease; min-width: 250px; display: flex; align-items: center; gap: 8px; }
.toast-success { background: var(--emerald-600); color: white; }
.toast-error { background: var(--red-600); color: white; }
.toast-info { background: var(--sky-500); color: white; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* Search */
.search-box { position: relative; }
.search-input { width: 100%; padding: 8px 12px 8px 36px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; background: white; }
.search-input:focus { outline: none; border-color: var(--pink-500); box-shadow: 0 0 0 3px rgba(236,72,153,0.1); }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }

/* Empty State */
.empty-state { text-align: center; padding: 32px; color: var(--gray-400); }
.empty-state-icon { font-size: 32px; margin-bottom: 8px; }
.empty-state-text { font-size: 13px; }

/* Switch/Toggle */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; cursor: pointer; inset: 0; background: var(--gray-300); border-radius: 20px; transition: 0.3s; }
.switch-slider:before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; bottom: 2px; background: white; border-radius: 50%; transition: 0.3s; }
.switch input:checked + .switch-slider { background: var(--pink-500); }
.switch input:checked + .switch-slider:before { transform: translateX(16px); }

/* Divider */
.divider { height: 1px; background: var(--pink-100); margin: 12px 0; }

/* POS specific */
.pos-layout { display: grid; grid-template-columns: 1fr 380px; gap: 16px; height: calc(100vh - 80px); }
.pos-menu { overflow-y: auto; }
.pos-cart { display: flex; flex-direction: column; }
.pos-categories { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pos-category-btn { padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 500; cursor: pointer; background: var(--pink-50); color: var(--pink-700); border: 1px solid var(--pink-200); transition: all 0.2s; }
.pos-category-btn.active { background: var(--gradient); color: white; border-color: transparent; }
.pos-item { padding: 10px; border-radius: var(--radius); background: rgba(255,255,255,0.9); border: 1px solid var(--pink-100); cursor: pointer; transition: all 0.2s; }
.pos-item:hover { border-color: var(--pink-400); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.pos-item-name { font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.pos-item-price { font-size: 13px; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cart-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid var(--pink-100); }
.cart-item-name { flex: 1; font-size: 12px; min-width: 0; }
.cart-item-price { font-size: 12px; font-weight: 600; color: var(--pink-600); }
.cart-total { padding: 12px; background: var(--pink-50); border-radius: var(--radius); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; }
.cart-total-row.grand { font-size: 16px; font-weight: 700; color: var(--pink-600); }

/* Mini chart */
.mini-chart { display: flex; align-items: flex-end; gap: 3px; height: 60px; padding: 8px 0; }
.mini-chart-bar { flex: 1; background: var(--gradient-br); border-radius: 2px 2px 0 0; min-height: 2px; transition: height 0.3s; }

/* Membership card */
.member-card { background: var(--gradient-br); color: white; border-radius: var(--radius-xl); padding: 16px; position: relative; overflow: hidden; }
.member-card::before { content: ''; position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.member-number { font-size: 11px; opacity: 0.8; }
.member-name { font-size: 18px; font-weight: 700; margin: 4px 0; }
.member-package { font-size: 12px; opacity: 0.9; }
.member-qr { width: 80px; height: 80px; background: white; border-radius: var(--radius); padding: 4px; }

/* Gradient text */
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.active { display: block; }
    .sidebar-close { display: block; }
    .topbar-menu { display: block; }
    .main-content { margin-left: 0; }
    .pos-layout { grid-template-columns: 1fr; height: auto; }
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .dialog-box { max-width: calc(100vw - 32px); }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

/* Utility classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 10px; }
.text-sm { font-size: 12px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-pink { color: var(--pink-500); }
.text-sky { color: var(--sky-500); }
.text-emerald { color: var(--emerald-600); }
.text-red { color: var(--red-600); }
.text-muted { color: var(--gray-500); }
.text-indigo { color: var(--indigo-950); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.overflow-auto { overflow: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-h-screen { min-height: 100vh; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.border { border: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--pink-100); }
.bg-white { background: white; }
.bg-pink-50 { background: var(--pink-50); }
.bg-pink-100 { background: var(--pink-100); }
.bg-gradient { background: var(--gradient); }
.backdrop-blur { backdrop-filter: blur(10px); }
.cursor-pointer { cursor: pointer; }
.transition { transition: all 0.2s; }
.hover-pink:hover { background: var(--pink-50); }
.col-span-2 { grid-column: span 2; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }

/* Utility classes */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.overflow-auto { overflow: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.whitespace-nowrap { white-space: nowrap; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.border { border: 1px solid var(--gray-200); }
.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Membership package cards */
.mb-pkg-name { font-size: 13px; font-weight: 600; color: var(--indigo-950); }
.mb-pkg-price { font-size: 18px; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mb-pkg-visits { font-size: 11px; color: var(--gray-500); }
.mb-pkg-days { font-size: 11px; color: var(--gray-400); }

/* Table row hover */
.table-row:hover { background: var(--pink-50); }

/* Responsive grid */
@media (max-width: 768px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* Scroll area */
.scroll-area { overflow-y: auto; max-height: 400px; }
.scroll-area-sm { overflow-y: auto; max-height: 200px; }

/* Color dots for expense categories */
.cat-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.cat-makan_siang { background: #f97316; }
.cat-pembelian_produk { background: #8b5cf6; }
.cat-transport { background: #06b6d4; }
.cat-utilitas { background: #eab308; }
.cat-sewa { background: #ef4444; }
.cat-gaji { background: #22c55e; }
.cat-peralatan { background: #64748b; }
.cat-lainnya { background: #94a3b8; }

/* Invoice */
.invoice-preview { max-width: 300px; margin: 0 auto; background: white; padding: 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: 12px; }

/* Loading */
.loading { display: flex; align-items: center; justify-content: center; padding: 32px; color: var(--gray-400); }
.spinner { width: 24px; height: 24px; border: 3px solid var(--pink-200); border-top-color: var(--pink-500); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Print */
@media print {
    .sidebar, .topbar, #toast-container { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .content-area { padding: 0 !important; }
}

/* ===== ADDITIONAL COMPREHENSIVE STYLES ===== */

/* Form validation */
.form-input.error, .form-select.error, .form-textarea.error { border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.form-error { font-size: 10px; color: var(--red-600); margin-top: 2px; }
.form-success { font-size: 10px; color: var(--emerald-600); margin-top: 2px; }
.form-hint { font-size: 10px; color: var(--gray-400); margin-top: 2px; }

/* Checkbox */
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--pink-500); }

/* Radio */
.radio-group { display: flex; gap: 16px; }
.radio { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.radio input[type="radio"] { accent-color: var(--pink-500); }

/* Progress bar */
.progress { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient); border-radius: 3px; transition: width 0.3s; }

/* Avatar */
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient-br); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-xl { width: 64px; height: 64px; font-size: 20px; }

/* Chip / Tag */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px; font-size: 10px; background: var(--pink-50); color: var(--pink-700); border: 1px solid var(--pink-200); }
.chip-sky { background: var(--sky-50); color: var(--sky-700); border-color: var(--sky-200); }
.chip-emerald { background: var(--emerald-50); color: var(--emerald-700); border-color:'transparent'; }

/*Breadcrumbs */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-500); }
.breadcrumb-separator { color: var(--gray-300); }
.breadcrumb-current { color: var(--indigo-950); font-weight: 500; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: 16px; }
.pagination-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); font-size: 12px; border:;1px solid var(--gray-200); background: white; color: var(--indigo-950); cursor: pointer; }
.pagination-btn:hover { background: var(--pink-50); border-color: var(--pink-300); }
.pagination-btn.active { background: var(--gradient); color: white; border-color: transparent; }

/* Tooltip */
.tooltip { position: relative; }
.tooltip::after { content: attr(data-tip); position:.absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--indigo-950); color: white; padding: 4px 8px; border-radius: 4px; font-size: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.tooltip:hover::after { opacity: 1; }

/* Skeleton loader */
.skeleton { background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
.skeleton-text { height: 14px; width: 100%; margin-bottom: 8px; }
.skeleton-title { height: 20px; width: 60%; margin-bottom: 12px; }
.skeleton-card { height: 120px; width: 100%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; top: calc(100% + 4px); right: 0; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 4px; min-width: 160px; z-index: 150; display: none; }
.dropdown-menu.show { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); font-size: 13px; color: var(--indigo-950); cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.dropdown-item:hover { background: var(--pink-50); }
.dropdown-item.danger { color: var(--red-600); }
.dropdown-item.danger:hover { background: var(--red-50); }

/* Alert */
.alert { padding: 12px 16px; border-radius: var(--radius); display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.alert-info { background: var(--sky-50); color: var(--sky-700); border: 0 1px solid var(--sky-200); }
.alert-success { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-100); }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-error { background: var(--red-50); color: var(--red-600); border: 1px solid #fecaca; }

/* Stepper / Steps */
.stepper { display: flex; align-items: center; gap: 0; }
.step { display: flex; align-items: center; gap: 8px; }
.step-number { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--gray-200); color: var(--gray-500); }
.step.active .step-number { background: var(--gradient-br); color: white; }
.step.completed .step-number { background: var(--emerald-600); color: white; }
.step-label { font-size: 12px; color: var(--gray-500); }
.step.active .step-label { color: var(--indigo-950); font-weight: 500; }
.step-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 8px; }
.step.completed + .step-line { background: var(--emerald-600); }

/* Stat mini cards for dashboard */
.mini-stat { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,0.8); border-radius: var(--radius); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.mini-stat-icon { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.mini-stat-value { font-size: 18px; font-weight: 700; color: var(--indigo-950); }
.mini-stat-label { font-size: 11px; color: var(--gray-500); }

/*5Patient detail card */
.patient-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.patient-detail-item { padding: 8px; background: var(--pink-50); border-radius: var(--radius); }
.patient-detail-label { font-size: 10px; color: var(--gray-500); }
.patient-detail-value { font-size: 13px; font-weight: 500; color: var(--indigo(950); }

/* Membership QR display */
.qr-display { padding: 16px; background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); text-align: center; }
.qr-code-img { width: 120px; height: 120px; margin: 0 auto 8px; background: var(--gray-100); border-radius: var(--radius); }

/* Receipt / Invoice styles */
.receipt { max-width: 300px; margin: 0 auto; background: white; padding: 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.receipt-header { text-align: center; margin-bottom: 16px; }
.receipt-body { border-top: 1px dashed var(--gray-300); padding-top: 12px; }
.receipt-item { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px; }
.receipt-total { display: flex; justify-content: space-between; padding: 8px 0; font-size: 16px; font-weight: 700; border-top: 2px solid var(--pink-500); margin-top: 8px; }
.receipt-footer { text-align: center; margin-top: 16px; font-size: 10px; color: var(--gray-400); }

/* Commission detail card */
.commission-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 16px; margin-bottom: 12px; }
.commission-therapist { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.commission-therapist-name { font-size: 15px; font-weight: 600; color: var(--indigo-950); }
.commission-total { font-size: 18px; font-weight: 700; color: var(--violet-500); }
.commission-table { width: 100%; }

F/* Responsive adjustments */
@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .patient-detail { grid-template-columns: 1fr; }
    .pos-layout { grid-template-columns: 1fr; }
    .card { border-radius: var(--radius); }
    .btn { padding: 6px 12px; font-size: 12px; }
    .stat-card-value { font-size: 16px; }
    th, td { padding: 6px 8px; font-size: 11px; }
}

@media (min-width: 1025px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* Animation classes */
.fade-in { animation: fadeIn 0.3s ease; }
.fade-out { animation: fadeOut 0.3s ease forwards; }
.slide-up { animation: slideUp 0.3s ease; }
.slide-down { animation: slideDown 0.3s ease; }
.bounce { animation: bounce 0.5s ease; }
.pulse { animation: pulse 2s infinite; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Focus visible */
:focus-visible { outline: 2px solid var(--pink-500); outline-offset: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--pink-500); outline-offset: 1px; border-radius: 2px; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Selection */
::selection { background: var(--pink-200); color: var(--indigo-950); }

/* Print specific */
@media print {
    body { background: white; }
    .sidebar, .topbar, .btn, #toast-container { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .content-area { padding: 0 !important; }
    .card { box-shadow: none; border: 1px solid #eee; }
}

/* Dark mode prep (for future) */
@media (prefers-color-scheme: dark) {
    /* Placeholder for future dark mode support */
}

/* Accessibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
