﻿[v-cloak] { display: none; }

*, *::before, *::after { box-sizing: border-box; }

html:lang(bn) { font-size: 120%; }

body {
  background: #f1f5f9;
  color: #1e293b;
  font-family: 'SolaimanLipi', 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Page background: soft light gradient */
.page-bg {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(99,102,241,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 100%, rgba(245,158,11,0.08) 0%, transparent 55%),
    linear-gradient(160deg, #eef2ff 0%, #f8fafc 40%, #f0f9ff 100%);
}

/* Glass card — light */
.card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 0.875rem;
  box-shadow: 0 2px 16px rgba(99,102,241,0.07), 0 1px 3px rgba(0,0,0,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Input */
.inp {
  background: rgba(255,255,255,0.85);
  border: 1px solid #c7d2fe;
  color: #1e293b;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  height: 2.25rem;
  line-height: 1.25rem;
}
.inp:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.18); }
.inp::placeholder { color: #94a3b8; }
select.inp { cursor: pointer; }
select.inp option { background: #fff; color: #1e293b; }

/* Stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c7d2fe;
  border-radius: 0.375rem;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  height: 2.25rem;
}
.stepper-btn {
  width: 2rem; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 600;
  color: #6366f1;
  background: transparent;
  border: none; cursor: pointer;
  transition: background 0.1s, color 0.1s;
  flex-shrink: 0;
  user-select: none;
}
.stepper-btn:hover { background: #eef2ff; color: #4f46e5; }
.stepper-val {
  min-width: 2.25rem; text-align: center;
  font-size: 0.875rem; font-weight: 600;
  color: #1e293b;
  border-left: 1px solid #e0e7ff;
  border-right: 1px solid #e0e7ff;
  padding: 0 0.25rem;
  background: transparent;
  height: 100%; line-height: 2.25rem;
}
.stepper-val-input {
  text-align: center;
  font-size: 0.875rem; font-weight: 600;
  color: #1e293b;
  border: none; outline: none;
  background: transparent;
  height: 100%;
  padding: 0 0.25rem;
  border-left: 1px solid #e0e7ff;
  border-right: 1px solid #e0e7ff;
  font-family: inherit;
}
.stepper-val-input::-webkit-inner-spin-button,
.stepper-val-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-val-input[type=number] { -moz-appearance: textfield; }

/* Primary button */
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0 1rem;
  height: 2.25rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  display: inline-flex; align-items: center; gap: 0.375rem;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(99,102,241,0.3);
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 4px 18px rgba(99,102,241,0.4); }
.btn-primary:disabled { background: #cbd5e1 !important; box-shadow: none; cursor: not-allowed; color: #94a3b8; }

/* Secondary button */
.btn-secondary {
  background: rgba(255,255,255,0.85);
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0 1rem;
  height: 2.25rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-family: inherit;
}
.btn-secondary:hover { background: #f8fafc; border-color: #a5b4fc; color: #4f46e5; }

/* Danger button */
.btn-danger {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  border-radius: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 1rem;
  height: 2.25rem;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-family: inherit;
}
.btn-danger:hover { background: #ffe4e6; }

/* Browse button */
.btn-browse {
  background: #fffbeb;
  border: 1px dashed #fbbf24;
  color: #92400e;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 0.625rem;
  font-family: inherit;
}
.btn-browse:hover { background: #fef3c7; border-color: #f59e0b; }

.badge { font-size: 0.6875rem; padding: 1px 7px; border-radius: 9999px; font-weight: 500; }

/* Result card — glass with indigo tint */
.result-card {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(99,102,241,0.10);
}

/* Progress */
.progress-track { background: #e0e7ff; border-radius: 9999px; overflow: hidden; }
.progress-bar {
  background: linear-gradient(90deg, #6366f1, #818cf8);
  border-radius: 9999px;
  transition: width 0.5s ease;
}
.progress-bar-amber {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* Steps */
.step-active { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; box-shadow: 0 0 10px rgba(99,102,241,0.35); }
.step-done { background: #eef2ff; color: #4f46e5; border: 1.5px solid #a5b4fc; }
.step-todo { background: #fff; color: #94a3b8; border: 1.5px solid #e2e8f0; }

/* Header — white glass */
.site-header {
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(99,102,241,0.10);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.sun-icon { filter: drop-shadow(0 0 6px rgba(251,191,36,0.55)); }

/* Scrollbar */
.scrollbar-thin::-webkit-scrollbar { width: 4px; height: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 2px; }

/* Modal */
.modal-overlay { background: rgba(30,41,59,0.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-enter-active, .modal-leave-active { transition: opacity 0.25s, transform 0.25s cubic-bezier(0.32,0.72,0,1); }
.modal-enter-from, .modal-leave-to { opacity: 0; transform: translateY(100%); }
@media (min-width: 640px) {
  .modal-enter-from, .modal-leave-to { transform: translateY(10px) scale(0.98); }
}
.modal-sheet {
  max-height: 92svh; max-height: 92vh;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(99,102,241,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.modal-footer-safe { padding-bottom: max(0.75rem, env(safe-area-inset-bottom)); }

/* Category tabs */
.cat-tab {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 9999px;
  font-size: 0.75rem; font-weight: 500;
  padding: 6px 14px; cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.cat-tab:hover { border-color: #a5b4fc; color: #4f46e5; background: #eef2ff; }
.cat-tab.active { background: #eef2ff; border-color: #a5b4fc; color: #4f46e5; font-weight: 600; }

/* Preset card */
.preset-item {
  background: rgba(255,255,255,0.8);
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s;
  position: relative;
  width: 100%;
  font-family: inherit;
}
.preset-item:hover { border-color: #a5b4fc; background: #eef2ff; box-shadow: 0 2px 12px rgba(99,102,241,0.12); }
.preset-item.already-added { border-color: #a5b4fc; background: #eef2ff; }
.preset-item.already-added:hover { border-color: #818cf8; background: #e0e7ff; }
.preset-check {
  opacity: 0;
  transition: opacity 0.12s;
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 1.25rem; height: 1.25rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
}
.preset-item:hover .preset-check, .preset-item:active .preset-check { opacity: 1; }
@media (hover: none) { .preset-check { opacity: 1; } }
.preset-item:active { border-color: #818cf8; background: #e0e7ff; }

/* Table */
.tbl-head { background: #f8fafc; }
.tbl-row { border-bottom: 1px solid #f1f5f9; transition: background 0.1s; }
.tbl-row:hover { background: #f8fafc; }

/* Info rows */
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4375rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.8125rem; }
.info-row:last-child { border-bottom: none; }
.info-label { color: #64748b; }
.info-val { font-weight: 600; color: #1e293b; font-variant-numeric: tabular-nums; }

/* Toast */
.toast {
  background: rgba(255,255,255,0.95);
  color: #1e293b;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(99,102,241,0.15), 0 2px 8px rgba(0,0,0,0.08);
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid #c7d2fe;
  border-left: 3px solid #6366f1;
  min-width: 180px; max-width: 280px;
  pointer-events: none;
  font-family: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast-enter-active { transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.toast-leave-active { transition: all 0.18s ease-in; }
.toast-enter-from { opacity: 0; transform: translateX(28px) scale(0.97); }
.toast-leave-to { opacity: 0; transform: translateX(28px) scale(0.97); }

/* Lang toggle */
.lang-btn {
  background: rgba(255,255,255,0.7);
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 0.375rem;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.25rem 0.625rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  display: flex; align-items: center; gap: 0.375rem;
}
.lang-btn:hover { background: #eef2ff; border-color: #a5b4fc; color: #4f46e5; }
.lang-btn.active { background: linear-gradient(135deg, #6366f1, #4f46e5); border-color: #6366f1; color: #fff; }

/* Field label */
.field-label { font-size: 0.75rem; font-weight: 600; color: #64748b; letter-spacing: 0.04em; text-transform: uppercase; display: block; margin-bottom: 0.375rem; }

/* Active/touch states */
.btn-primary:active { opacity: 0.85; }
.btn-secondary:active { background: #eef2ff; }
.btn-danger:active { background: #ffe4e6; }
.stepper-btn:active { background: #e0e7ff; color: #4f46e5; }

/* Mobile appliance card */
.mob-app-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 0.75rem;
  padding: 0.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mob-col-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.25rem;
}

/* Mobile: larger touch targets */
@media (max-width: 639px) {
  .stepper { height: 2.5rem; }
  .stepper-btn { width: 2.5rem; }
  .stepper-val { line-height: 2.5rem; }
  .stepper-val-input { height: 2.5rem; }
  .btn-primary { height: 2.5rem; padding: 0 1.25rem; }
  .btn-secondary { height: 2.5rem; padding: 0 1.25rem; }
  .btn-danger { height: 2.5rem; padding: 0 1.25rem; }
  .inp { height: 2.5rem; }
  .result-card { padding: 0.75rem 0.625rem; }
}
