/* style_v1.css — identitate vizuala AGRO GISCAD, mobile-first */

:root {
  --accent: #E65100;
  --accent-2: #F57C00;
  --bg: #f5f5f0;
  --card: #ffffff;
  --border: #e0e0d8;
  --text: #1a1a1a;
  --muted: #666666;
  --ok: #2a7a2a;
  --err: #a02020;
  --consola-h: 46px;
  --consola-h-expandat: 60vh;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-bottom: calc(var(--consola-h) + 8px);
  min-height: 100vh;
}

.ascuns { display: none !important; }

/* --- Header / brand ---------------------------------------------------- */

.antet {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.antet .brand { font-size: 17px; font-weight: 800; letter-spacing: 0.03em; }
.antet .brand span { font-weight: 400; font-size: 12px; display: block; opacity: 0.9; }
.antet .user-info { font-size: 12px; text-align: right; }
.antet .user-info button {
  margin-top: 4px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  min-height: 32px;
}

/* --- Layout general ------------------------------------------------------ */

.container { max-width: 720px; margin: 0 auto; padding: 12px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

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

label.fl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }

input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d0d0c8;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  min-height: 44px;
}

textarea { min-height: 90px; resize: vertical; }

.grid1 { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }

button, .btn {
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  border: 1px solid #c0c0b8;
  background: #fff;
  color: var(--text);
  min-height: 44px;
  min-width: 44px;
}

button:active { transform: scale(0.98); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primar {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  margin-top: 4px;
}
.btn-primar:hover:not(:disabled) { background: var(--accent-2); }

.btn-secundar { background: #eef1f4; border-color: #d5dbe0; }
.btn-remove { font-size: 12px; padding: 8px 10px; color: var(--err); border-color: #e0b0b0; background: #fff8f8; }

.status-msg { font-size: 13px; text-align: center; margin-top: 8px; min-height: 18px; }
.status-msg.ok { color: var(--ok); }
.status-msg.err { color: var(--err); }

.imobil-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fafaf8;
}
.imobil-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.imobil-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }

.clauza-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; border-radius: 6px; }
.clauza-item input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.clauza-text { font-size: 13.5px; line-height: 1.5; flex: 1; }
.clauza-campuri { margin-top: 6px; }
.clauza-campuri input { margin-top: 4px; }

.preview-box {
  background: #fffef8;
  border: 1px solid #e8e4d0;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Times New Roman', serif;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 40vh;
  overflow-y: auto;
}

.versiune-info { font-size: 11px; color: var(--muted); text-align: center; margin: 6px 0 4px; }

.pastila { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 6px; }
.pastila-admin { background: #ffe0b2; color: #e65100; }
.pastila-operator { background: #e0f2f1; color: #00695c; }

/* --- Consola diagnostic (banda fixa jos) --------------------------------- */

#consola-diagnostic {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #0d1117;
  color: #d8dee9;
  font-family: 'Consolas', 'SFMono-Regular', monospace;
  font-size: 11.5px;
  border-top: 2px solid var(--accent);
  height: var(--consola-h);
  transition: height 0.15s ease;
  display: flex;
  flex-direction: column;
}

#consola-diagnostic.expandat { height: var(--consola-h-expandat); }

#consola-bara {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: var(--consola-h);
  min-height: var(--consola-h);
  cursor: pointer;
}

#consola-ultim-mesaj { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#consola-ora { color: #7ee787; flex-shrink: 0; }
#consola-copiaza {
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #d8dee9;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 11px;
}

#consola-jurnal {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px 10px;
  display: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}
#consola-diagnostic.expandat #consola-jurnal { display: block; }

.consola-linie { padding: 2px 0; border-bottom: 1px dotted rgba(255,255,255,0.06); word-break: break-word; }
.consola-linie.tip-eroare { color: #ff7b72; }
.consola-linie.tip-avertisment { color: #f2cc60; }
.consola-linie.tip-info { color: #a5d6ff; }
.consola-linie .ora { color: #7ee787; margin-right: 6px; }

@media (min-width: 640px) {
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}
