/* style.css — המרת נסח טאבו לאקסל | סגנון lendover.co.il */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --copper:      #B8743D;
  --copper-dark: #9A5F2E;
  --copper-light:#F5E9DC;
  --teal:        #5BC8C4;
  --charcoal:    #3C3C3C;
  --text:        #2C2C2C;
  --text-muted:  #777777;
  --bg:          #F0EDE6;
  --bg-white:    #FFFFFF;
  --border:      #E2DDD6;
  --red:         #C0392B;
  --green:       #2E7D52;
  --radius:      4px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
}

html { font-size: 16px; }

body {
  font-family: 'Heebo', 'Arial Hebrew', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  padding-bottom: 48px;
}

/* ── Navbar ──────────────────────────────── */
nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo {
  height: 120px;
  width: auto;
}
.nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}
.nav-title span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Hero banner ─────────────────────────── */
.hero {
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  padding: 28px 24px 24px;
}
.hero h1 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
}

/* ── Container ───────────────────────────── */
.container {
  max-width: 680px;
  margin: 36px auto 0;
  padding: 0 16px;
}

/* ── Section heading style ───────────────── */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--copper);
}

/* ── Card ────────────────────────────────── */
.card {
  background: var(--bg-white);
  border-top: 3px solid var(--copper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 20px;
}

/* ── Drop zone ───────────────────────────── */
#drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
#drop-zone:hover,
#drop-zone.dragover {
  border-color: var(--copper);
  background: var(--copper-light);
}
#drop-zone.has-file {
  border-style: solid;
  border-color: var(--copper);
  background: var(--copper-light);
}
#drop-zone .icon { font-size: 44px; margin-bottom: 10px; }
#drop-zone .main-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
}
#drop-zone .sub-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

#file-input { display: none; }

/* ── File list ───────────────────────────── */
#file-list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--copper-light);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 0.88rem;
}
.file-icon { flex-shrink: 0; }
.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--charcoal);
  font-weight: 600;
}
.remove-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0 2px;
  transition: color 0.15s;
}
.remove-btn:hover { color: var(--red); }

/* ── Convert button ──────────────────────── */
#convert-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  background: var(--copper);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  letter-spacing: 0.02em;
}
#convert-btn:hover:not(:disabled) { background: var(--copper-dark); }
#convert-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Spinner ─────────────────────────────── */
#spinner {
  display: none;
  text-align: center;
  padding: 18px 0 4px;
}
#spinner .spin {
  display: inline-block;
  width: 36px; height: 36px;
  border: 3px solid var(--copper-light);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#spinner p {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Result card ─────────────────────────── */
#result-card { display: none; }

#result-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 20px;
}

.building-row { margin-bottom: 8px; }
.building-row--bordered {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.building-row--bordered:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 4px;
}
.info-item label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 400;
}
.info-item span {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--charcoal);
}
.info-item.wide { grid-column: 1 / -1; }

/* ── Total summary ───────────────────────── */
.total-summary {
  background: var(--copper-light);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--copper-dark);
  margin: 16px 0;
  text-align: center;
  font-weight: 500;
}

/* ── Warnings ────────────────────────────── */
.warnings-note {
  background: #FEF6ED;
  border: 1px solid #F0C68A;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #8A5A1A;
  margin-bottom: 16px;
}

/* ── Download button ─────────────────────── */
#download-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--charcoal);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  margin-top: 18px;
}
#download-btn:hover { background: #555; }

#reset-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  color: var(--copper);
  border: 1.5px solid var(--copper);
  border-radius: var(--radius);
  font-family: 'Heebo', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
#reset-btn:hover { background: var(--copper-light); }

/* ── Error ───────────────────────────────── */
#error-box {
  display: none;
  background: #FEF0F0;
  border: 1px solid #F5BCBC;
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--red);
  font-size: 0.88rem;
  margin-top: 16px;
  font-weight: 600;
}

/* ── Privacy note ────────────────────────── */
.privacy-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 520px) {
  nav { padding: 8px 16px; }
  .nav-logo { height: 80px; }
  .hero { padding: 32px 16px 28px; }
  .hero h1 { font-size: 1.35rem; }
  .card { padding: 20px 16px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-item.wide { grid-column: 1; }
}
