/* Global styles for the service shop UI with light/dark themes */
:root {
  /* Light theme palette (xanh-thanh-tím-inspired) */
  --bg: #f6f8ff;
  --surface: #ffffff;
  --text: #0f1220;
  --muted: #5b6478;
  --card: #ffffff;
  --border: rgba(0,0,0,.08);
  --shadow: 0 8px 20px rgba(0,0,0,.08);
  --radius: 14px;
  --primary: #2563eb;  /* blue-600 */
  --teal: #14b8a6;
  --purple: #7c3aed;
  --gradient: linear-gradient(135deg, rgba(6, 28, 60, 0.12), rgba(124, 58, 237, 0.12));
}

/* Dark theme overrides */
.app[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #14172a;
  --text: #e8ecf6;
  --muted: #a3b0d0;
  --card: #1e1f38;
  --border: rgba(255,255,255,.08);
  --shadow: 0 12px 28px rgba(0,0,0,.6);
  --gradient: linear-gradient(135deg, rgba(18,12,48,.8), rgba(87,35,125,.8));
  --primary: #8b5cf6;
  --teal: #0ea5a1;
  --purple: #a78bfa;
}

* { box-sizing: border-box; }
 html, body, #root { height: 100%; }
 body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); }

/* Layout */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(6, 24, 60, 0.95), rgba(124,58,237,0.95));
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.25); margin-bottom: 16px; }
.brand .logo { font-size: 22px; }
.brand-name { font-weight: 700; letter-spacing: .4px; }
.menu ul { list-style: none; padding: 0; margin: 12px 0; }
.menu li { margin: 6px 0; }
.menu a {
  display: block; padding: 12px 12px; border-radius: 8px; color: #fff; text-decoration: none;
  transition: background .2s;
}
.menu a.active, .menu a:hover { background: rgba(255,255,255,.25); }
.theme-row { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.theme-btn { background: rgba(255,255,255,.25); border: 0; color: #0b1020; width: 38px; height: 28px; border-radius: 6px; cursor: pointer; }
.content { padding: 28px; background: var(--bg); }
.header { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.menu-toggle { display: none; background: transparent; border: none; font-size: 22px; color: var(--text); cursor: pointer; }
.hero { padding: 16px 0 20px; }
.hero h2 { margin: 0 0 6px; font-size: 28px; }
.hero p { margin: 0; color: var(--muted); }
.cta-row { display: flex; gap: 12px; margin-top: 12px; }
.btn { border: 0; padding: 12px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--purple)); color: white; }
.btn:not(.primary) { background: rgba(0,0,0,.04); color: var(--text); }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 18px; }
.service-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; min-height: 210px; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,.15); }
.service-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.service-icon { font-size: 22px; }
.service-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.service-desc { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; line-height: 1.5; }
.service-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; color: var(--text); }
.tag { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 11px; background: #eef2ff; color: #4338ca; }
.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.5); z-index: 50; }
.modal-overlay[aria-hidden="false"] { display: flex; }
.modal { background: var(--surface); border-radius: 14px; width: min(600px, 92%); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 16px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.modal-close { background: transparent; border: 0; font-size: 22px; cursor: pointer; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px 0; }
.form-row label { font-size: 13px; color: var(--muted); }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 14px; }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.modal .btn { padding: 10px 14px; border-radius: 8px; }
.modal .btn.primary { background: var(--primary); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; height: 100%; width: 260px; transform: translateX(-100%); transition: transform .3s ease; }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 16px; }
  .header { padding-bottom: 8px; }
  .menu-toggle { display: inline-block; }
}
