:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #dbeafe;
  --secondary: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --radius: 12px;
  --nav-h: 64px;
  --hdr-h: 56px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===================== HEADER ===================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hdr-h);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 200;
  box-shadow: var(--shadow-md);
}

#page-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== MAIN ===================== */
#main {
  padding-top: var(--hdr-h);
  padding-bottom: calc(var(--nav-h) + 8px);
  min-height: 100vh;
}

.page { display: none; padding: 16px; animation: fadeIn .2s ease; }
.page.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== BOTTOM NAV ===================== */
#bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--surface);
  display: flex;
  border-top: 1px solid var(--border);
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 6px 0 8px;
  transition: color .2s;
  position: relative;
}

.nav-icon { font-size: 22px; line-height: 1; transition: transform .2s; }
.nav-item.active { color: var(--primary); }
.nav-item.active .nav-icon { transform: scale(1.15); }

.nav-item::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-item.active::before { transform: scaleX(1); }

/* ===================== CARDS ===================== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ===================== STATS ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-value { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost { background: var(--bg); color: var(--text); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 8px; }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }

.form-input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-input::placeholder { color: #94a3b8; }

.input-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.input-row .form-input { flex: 1; }

.scan-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.scan-btn:active { background: var(--primary-light); border-color: var(--primary); }

/* ===================== BOOK PREVIEW ===================== */
.book-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.book-cover-sm {
  width: 60px;
  height: 84px;
  border-radius: 6px;
  background: var(--primary-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
}
.book-cover-sm img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

.book-meta { flex: 1; min-width: 0; }
.book-meta-title { font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.book-meta-author { font-size: 13px; color: var(--text-muted); margin-bottom: 3px; }
.book-meta-pub { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.book-meta-isbn { font-size: 11px; color: var(--text-muted); font-family: 'Courier New', monospace; }

/* ===================== BOOK LIST ITEM ===================== */
.book-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.book-item:active { transform: scale(.985); box-shadow: none; }

.book-item-cover {
  width: 42px;
  height: 58px;
  border-radius: 5px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}
.book-item-cover img { width: 100%; height: 100%; object-fit: cover; }

.book-item-info { flex: 1; min-width: 0; }
.book-item-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.book-item-author { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.book-item-isbn { font-size: 10px; color: var(--text-muted); font-family: monospace; }

/* ===================== BADGES ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: var(--danger-light); color: #991b1b; }
.badge-blue { background: var(--primary-light); color: var(--primary); }

/* ===================== TABS ===================== */
.tabs {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.tab-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 8px;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.tab-btn.active { background: var(--primary); color: #fff; }

/* ===================== SECTION TITLE ===================== */
.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 0 2px;
}

/* ===================== TRANSACTION ITEMS ===================== */
.tx-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.tx-item:last-child { border-bottom: none; }

.tx-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.tx-icon.giris { background: #dcfce7; }
.tx-icon.cikis { background: var(--danger-light); }
.tx-icon.iade { background: var(--primary-light); }
.tx-icon.sayim { background: #fef9c3; }

.tx-info { flex: 1; min-width: 0; }
.tx-label { font-size: 13px; font-weight: 600; }
.tx-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* ===================== DETAIL VIEW ===================== */
.detail-cover {
  width: 100px;
  height: 140px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  margin: 0 auto 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.detail-title { font-size: 19px; font-weight: 700; text-align: center; line-height: 1.3; margin-bottom: 4px; }
.detail-author { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 14px; }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  gap: 8px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.info-value { font-weight: 600; text-align: right; word-break: break-all; }

/* ===================== SEARCH BAR ===================== */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.search-input {
  flex: 1;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: var(--surface);
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: #94a3b8; }

/* ===================== ACTIVITY ===================== */
.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon { font-size: 24px; flex-shrink: 0; width: 36px; text-align: center; }
.activity-info { flex: 1; min-width: 0; }
.activity-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-sub { font-size: 11px; color: var(--text-muted); }
.activity-date { font-size: 11px; color: var(--text-muted); flex-shrink: 0; text-align: right; }

/* ===================== EMPTY STATE ===================== */
.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}
.empty-icon { font-size: 52px; margin-bottom: 10px; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-desc { font-size: 13px; }

/* ===================== LOADING ===================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== SCANNER MODAL ===================== */
#scanner-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  backdrop-filter: blur(4px);
}
#scanner-modal.hidden { display: none; }

.scanner-sheet {
  width: 100%;
  background: #111;
  border-radius: 24px 24px 0 0;
  padding: 16px;
}

.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.scanner-header h3 { color: #fff; font-size: 16px; }
.scanner-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scanner-reader { width: 100%; border-radius: 12px; overflow: hidden; min-height: 200px; }
#scanner-reader video { width: 100% !important; border-radius: 12px !important; }
#scanner-reader img { display: none !important; }

.scanner-hint { color: rgba(255,255,255,.6); font-size: 12px; text-align: center; margin: 10px 0; }

.scanner-manual {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.scanner-manual input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.scanner-manual input::placeholder { color: rgba(255,255,255,.4); }
.scanner-manual button {
  padding: 10px 14px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  top: calc(var(--hdr-h) + 10px);
  left: 16px;
  right: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity .3s, transform .3s;
}
.toast.success { background: #dcfce7; color: #166534; }
.toast.error { background: var(--danger-light); color: #991b1b; }
.toast.info { background: var(--primary-light); color: #1e40af; }
.toast.hidden { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* ===================== UTILITIES ===================== */
.hidden { display: none !important; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.font-mono { font-family: 'Courier New', monospace; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.flex-1 { flex: 1; }

/* ===================== IADE CARD ===================== */
.iade-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 13px 14px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.iade-card-info { flex: 1; min-width: 0; }
.iade-card-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iade-card-sub { font-size: 12px; color: var(--text-muted); }
.iade-card-sub.late { color: var(--danger); font-weight: 600; }

/* ===================== AUTH SCREENS ===================== */
#login-overlay, #setup-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-container { width: 100%; max-width: 360px; }

.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 12px; }
.auth-header h2 { font-size: 22px; color: #fff; font-weight: 700; }
.auth-header p { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }

.auth-form { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-md); }
.auth-form .form-group { margin-bottom: 14px; }
.auth-form .btn { margin-top: 6px; }

.auth-error {
  background: var(--danger-light);
  color: #991b1b;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}
.auth-switch a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* ===================== HEADER ICON BUTTON ===================== */
.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.header-icon-btn:active { background: rgba(255,255,255,.25); }

/* ===================== USER DROPDOWN ===================== */
.user-dropdown {
  position: fixed;
  top: calc(var(--hdr-h) + 4px);
  left: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  min-width: 220px;
  z-index: 300;
  overflow: hidden;
  animation: dropIn .15s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-user-info { padding: 14px 16px; }
.dropdown-name { font-size: 14px; font-weight: 700; }
.dropdown-role { font-size: 11px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .4px; }

.dropdown-divider { height: 1px; background: var(--border); }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.dropdown-item:hover, .dropdown-item:active { background: var(--bg); }
.dropdown-item-danger { color: var(--danger); }

/* ===================== USER MANAGEMENT LIST ===================== */
.user-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 13px 14px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.user-card-info { flex: 1; min-width: 0; }
.user-card-name { font-size: 14px; font-weight: 600; }
.user-card-username { font-size: 11px; color: var(--text-muted); font-family: monospace; }
.user-card-actions { display: flex; gap: 6px; flex-shrink: 0; }

.role-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 7px;
  border-radius: 4px;
}
.role-admin { background: #fef3c7; color: #92400e; }
.role-gorevli { background: #dbeafe; color: #1e40af; }
.role-uye { background: #f1f5f9; color: #64748b; }

/* ===================== MODAL OVERLAY ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-md);
}

/* ===================== ANASAYFA TABS ===================== */
.anasayfa-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab-btn {
  flex: 1; padding: 8px 12px; border: 2px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.tab-btn.active {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600;
}

/* ===================== RAPORLAR ===================== */
.rapor-tabs {
  display: flex; gap: 4px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px;
}
.rapor-tab-btn {
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface); color: var(--text-muted); font-size: 12px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all .2s;
}
.rapor-tab-btn.active {
  border-color: var(--primary); background: var(--primary); color: #fff;
}
.rapor-table-wrap { overflow-x: auto; }
.rapor-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.rapor-table th {
  text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--border);
  color: var(--text-muted); font-weight: 600; white-space: nowrap;
}
.rapor-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.rapor-table tr:last-child td { border-bottom: none; }
.rapor-table tr:hover td { background: var(--bg); }

/* Aylık bar chart */
.rapor-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 140px; padding: 8px 4px 0; overflow-x: auto;
}
.rapor-bar-group {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 40px; flex: 1;
}
.rapor-bars {
  display: flex; gap: 2px; align-items: flex-end; height: 100px; width: 100%;
}
.rapor-bar {
  flex: 1; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s;
}
.rapor-bar-giris { background: var(--primary); }
.rapor-bar-cikis { background: var(--warning); }
.rapor-bar-label { font-size: 10px; color: var(--text-muted); text-align: center; }
.rapor-bar-vals  { font-size: 10px; text-align: center; }

/* ===================== HÜCRE SAYFASI ===================== */
.hucre-form-card {
  background: var(--surface); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.hucre-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 10px; padding: 12px 14px;
  box-shadow: var(--shadow); margin-bottom: 8px;
}
.hucre-card-icon { font-size: 28px; flex-shrink: 0; }
.hucre-card-info { flex: 1; min-width: 0; }
.hucre-card-kod  { font-size: 13px; font-weight: 700; color: var(--primary); font-family: monospace; }
.hucre-card-adi  { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 1px; }
.hucre-card-ozel { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hucre-card-count { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.hucre-card-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Hücre filter bar in sayım */
.hucre-filter-bar {
  display: flex; gap: 6px; align-items: center; margin-bottom: 10px;
}
.hucre-filter-bar select { flex: 1; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 360px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 24px; }
}

@media (min-width: 600px) {
  #header, #main, #bottom-nav { max-width: 480px; margin-left: auto; margin-right: auto; left: 0; right: 0; }
  #scanner-modal { justify-content: center; align-items: flex-end; }
  .scanner-sheet { max-width: 480px; }
}
