/*
  Vintage Greece Upload (Modernized)
  - Responsive layout for the upload iframe (desktop + mobile)
  - Keeps legacy element IDs expected by js/main.js
*/

:root {
  --app-bg: #0b1220;
  --panel-bg: rgba(16, 26, 46, 0.96);
  --panel-border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --text-dim: rgba(255,255,255,0.70);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 16px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--app-bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden; /* dialog iframe should not double-scroll */
}

* { box-sizing: border-box; }

.upload-app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.upload-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.upload-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 16px;
}

.upload-subtitle {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 12.5px;
}

.upload-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 420px;
}

.upload-map {
  position: relative;
  min-width: 0;
}

#map {
  position: absolute;
  inset: 0;
}

.upload-panel {
  min-width: 0;
  overflow: auto;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border-left: 1px solid var(--panel-border);
}

.card {
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
}

.card-header {
  padding: 12px 14px;
  font-weight: 800;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.card-body {
  padding: 12px 14px;
}

.field {
  display: block;
  margin-bottom: 10px;
}

.field-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.field-input:focus {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
}

select.field-input { appearance: none; }

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

.field-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-error {
  color: rgba(255, 180, 180, 0.95);
  font-size: 12px;
}

.field-hints {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { background: rgba(255,255,255,0.14); }

.btn-primary {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.20);
}

.form-actions { margin-top: 6px; }

.address {
  min-height: 18px;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
}

.hint {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 12.5px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.hint img { width: 18px; height: 18px; opacity: 0.9; }

/* Dialog notices */
.notice {
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
}

.notice-success {
  background: rgba(100, 255, 160, 0.12);
  border: 1px solid rgba(100, 255, 160, 0.22);
  color: var(--text);
}

.notice-error {
  background: rgba(255, 120, 120, 0.14);
  border: 1px solid rgba(255, 120, 120, 0.25);
  color: var(--text);
}

/* Mobile: stack map + panel */
@media (max-width: 900px) {
  .upload-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 42vh 1fr;
  }
  .upload-panel {
    border-left: 0;
    border-top: 1px solid var(--panel-border);
  }
  .grid { grid-template-columns: 1fr; }
}

/* Very small screens */
@media (max-width: 380px) {
  .upload-panel { padding: 10px; }
  .card-body { padding: 10px 12px; }
}
