/* ============================================
   AI Doctor - Medical UI Design System
   DMM-inspired: clean, clinical, light blue
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --green-dark:   #3a9aaa;
  --green-main:   #5ab8c4;
  --green-mid:    #6ecad4;
  --green-light:  #e8f6f8;
  --green-pale:   #f0f8fa;

  --orange:       #f07d3a;
  --orange-light: #fff4ec;
  --blue:         #3a82c4;
  --blue-light:   #eaf3fb;
  --red:          #e05252;
  --red-light:    #fdf0f0;
  --yellow:       #e8a820;
  --yellow-light: #fdf8ec;

  --text-primary:   #1a2332;
  --text-secondary: #5a6a7a;
  --text-muted:     #9aabb8;
  --text-on-green:  #ffffff;

  --bg-base:    #f5f7f9;
  --bg-white:   #ffffff;
  --bg-sidebar: #3a9aaa;

  --border:       #e2e8ed;
  --border-light: #eef2f5;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 3px 10px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);

  --sidebar-w: 200px;
  --header-h:  56px;
  --transition: 0.18s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-main); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

/* ---- Layout ---- */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: width var(--transition);
}

.sidebar-logo {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-logo .logo-icon {
  width: 28px; height: 28px;
  background: white;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.sidebar-logo .logo-icon svg { width: 16px; height: 16px; }
.sidebar-logo .logo-text {
  font-size: 15px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 0;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  background: rgba(255,255,255,0.10);
  color: white;
}
.nav-item.active {
  background: rgba(255,255,255,0.15);
  color: white;
  font-weight: 500;
  border-left-color: white;
}
.nav-item .nav-icon {
  width: 18px; height: 18px;
  opacity: 0.85;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.sidebar-footer .nav-item { padding: 10px 0; }

/* ---- Main Content ---- */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Top Header ---- */
.topbar {
  height: var(--header-h);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}
.badge-btn:hover { background: var(--bg-base); }
.badge-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 16px; height: 16px;
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.user-menu:hover { background: var(--bg-base); }
.user-avatar {
  width: 32px; height: 32px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  overflow: hidden;
}
.user-name { font-size: 13px; font-weight: 500; }

/* ---- Page Content ---- */
.page-content {
  flex: 1;
  padding: 24px;
}

/* ---- Status Tabs ---- */
.status-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  gap: 0;
}
.status-tab {
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.status-tab:hover { color: var(--green-main); }
.status-tab.active {
  color: var(--green-main);
  border-bottom-color: var(--green-main);
  font-weight: 500;
}

/* ---- Date Selector ---- */
.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.date-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.btn-nav {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.btn-nav:hover { border-color: var(--green-main); color: var(--green-main); }
.btn-today {
  padding: 5px 12px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-today:hover { border-color: var(--green-main); color: var(--green-main); }

/* ---- Patient Table ---- */
.patient-table-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.patient-table {
  width: 100%;
  border-collapse: collapse;
}

.patient-table thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.patient-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
  cursor: pointer;
}
.patient-table tbody tr:last-child { border-bottom: none; }
.patient-table tbody tr:hover { background: var(--green-pale); }

.patient-table td {
  padding: 13px 16px;
  font-size: 13.5px;
  vertical-align: middle;
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.patient-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  flex-shrink: 0;
}
.patient-name-block .furigana {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}
.patient-name-block .name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.patient-name-block .meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- Status Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-dot-sm {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-waiting    { background: var(--yellow-light); color: #b07a10; }
.badge-waiting    .badge-dot-sm { background: var(--yellow); }
.badge-analyzing  { background: var(--blue-light);   color: #2060a0; }
.badge-analyzing  .badge-dot-sm { background: var(--blue); }
.badge-ready      { background: var(--green-light);  color: var(--green-dark); }
.badge-ready      .badge-dot-sm { background: var(--green-main); }
.badge-done       { background: #f0f1f3;             color: var(--text-secondary); }
.badge-done       .badge-dot-sm { background: #aab; }
.badge-delivery   { background: var(--orange-light); color: #c05a10; }
.badge-delivery   .badge-dot-sm { background: var(--orange); }
.badge-answered   { color: var(--green-main); font-weight: 500; font-size: 12.5px; }
.badge-unanswered { color: var(--text-muted); font-size: 12.5px; }

/* ---- Cards ---- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
}
.card-body { padding: 20px; }

/* ---- Detail Layout ---- */
.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 16px;
  align-items: start;
}

.patient-card .patient-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 auto 12px;
}
.patient-card .patient-full-name {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 2px;
}
.patient-card .patient-kana {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text-muted); }
.info-row .value { font-weight: 500; }

/* ---- Tabs ---- */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}
.tab {
  padding: 9px 18px;
  font-size: 13.5px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  background: none;
  border-top: none; border-left: none; border-right: none;
  color: var(--text-secondary);
}
.tab:hover { color: var(--green-main); }
.tab.active {
  color: var(--green-main);
  border-bottom-color: var(--green-main);
  font-weight: 500;
  background: none;
}

/* ---- Diagnosis Cards ---- */
.diagnosis-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: box-shadow var(--transition);
}
.diagnosis-item:hover { box-shadow: var(--shadow-md); }
.diagnosis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.diagnosis-name { font-size: 14px; font-weight: 600; }
.probability-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.probability-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.probability-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-mid), var(--green-main));
  border-radius: 3px;
  transition: width 0.6s ease;
}
.probability-fill.high   { background: linear-gradient(90deg, #5ab8c4, #3a9aaa); }
.probability-fill.medium { background: linear-gradient(90deg, #f0b03a, #e8a820); }
.probability-fill.low    { background: linear-gradient(90deg, #9aabb8, #7a9ab0); }
.probability-pct {
  font-size: 14px;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}
.probability-pct.high   { color: var(--green-dark); }
.probability-pct.medium { color: var(--yellow); }
.probability-pct.low    { color: var(--text-muted); }

.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
}
.tag-test        { background: var(--blue-light);   color: #1e5a9a; }
.tag-prescription{ background: var(--green-light);  color: var(--green-dark); }

/* ---- Action Panel (right column) ---- */
.action-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.status-box {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
}
.status-box.complete {
  background: var(--green-light);
  border: 1px solid #b0dfc8;
}
.status-box .status-title {
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.status-box .meta-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  color: var(--text-secondary);
}
.status-box .meta-row .amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.alert-box {
  background: var(--yellow-light);
  border: 1px solid #f5d896;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: #8a6010;
  display: flex;
  gap: 8px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-main);
  color: white;
}
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--green-main);
  color: var(--green-main);
}
.btn-outline:hover { background: var(--green-pale); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover { border-color: var(--green-main); color: var(--green-main); }

.btn-danger {
  background: var(--red-light);
  border: 1px solid #f0b0b0;
  color: var(--red);
}
.btn-danger:hover { background: #fce4e4; }

.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-full { width: 100%; }

/* ---- Form elements ---- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-label.required::after {
  content: ' *';
  color: var(--red);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(39,163,96,0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aabb8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* Radio & Checkbox */
.radio-group, .check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 7px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  transition: all var(--transition);
}
.radio-option:has(input:checked) {
  border-color: var(--green-main);
  background: var(--green-pale);
  color: var(--green-dark);
}
.radio-option input { display: none; }

/* ---- Interview Form ---- */
.interview-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.interview-header {
  text-align: center;
  padding: 32px 24px 24px;
}
.interview-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.interview-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.section-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.section-header {
  padding: 14px 20px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.section-header .section-icon {
  width: 24px; height: 24px;
  background: var(--green-light);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
  font-size: 12px;
}
.section-body { padding: 20px; }

/* ---- Chat UI ---- */
.chat-wrap {
  max-width: 600px;
  margin: 0 auto;
}
.chat-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.progress-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green-main);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.progress-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.chat-bubble-ai {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.chat-bubble-ai::before {
  content: 'AI';
  position: absolute;
  top: -10px; left: 0;
  background: var(--green-main);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.chat-option-btn {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.chat-option-btn:hover {
  border-color: var(--green-main);
  background: var(--green-pale);
  color: var(--green-dark);
}

.chat-input-area {
  display: flex;
  gap: 8px;
}
.chat-text-input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}
.chat-text-input:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(39,163,96,0.12);
}

/* ---- Complete Page ---- */
.complete-wrap {
  max-width: 540px;
  margin: 40px auto;
  text-align: center;
}
.complete-icon {
  width: 72px; height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}
.complete-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.complete-sub {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.summary-box {
  background: var(--green-pale);
  border: 1px solid #b0dfc8;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: left;
  margin-bottom: 20px;
}
.summary-box h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.summary-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

/* ---- Feedback Form ---- */
.feedback-wrap { max-width: 640px; }
.rating-group {
  display: flex;
  gap: 8px;
}
.rating-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition);
  font-family: inherit;
}
.rating-btn:hover { border-color: var(--green-main); }
.rating-btn.selected-good { border-color: var(--green-main); background: var(--green-pale); color: var(--green-dark); }
.rating-btn.selected-ok   { border-color: var(--yellow);     background: var(--yellow-light); color: #8a6010; }
.rating-btn.selected-bad  { border-color: var(--red);        background: var(--red-light);    color: var(--red); }

/* ---- Rule-out section ---- */
.ruleout-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: #fafbfc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 6px;
  font-size: 13px;
}
.ruleout-name { font-weight: 500; min-width: 120px; }
.ruleout-reason { color: var(--text-secondary); }

/* ---- Utilities ---- */
.text-green { color: var(--green-main); }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 12px; }
.fw-600      { font-weight: 600; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.justify-between { justify-content: space-between; }

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

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.22s ease forwards; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); }
  .detail-layout { grid-template-columns: 1fr; }
}
