/* ===== GLOBAL ===== */
body {
  font-family: system-ui, sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 16px;
  display: flex;
  justify-content: center;
  scroll-behavior: auto;
}

/* ===== CARD ===== */
.card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.lang-select-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

#lang_select {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  cursor: pointer;
}

#lang_select:focus {
  outline: none;
  border-color: #3b82f6;
}

/* ===== HEADER ===== */
.header h2 {
  margin: 0 0 12px 0;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header h2::before {
  content: " ";
  font-size: 24px;
}

/* ===== INFO PANEL ===== */
.info-panel {
  background: #eef6ff;
  border-left: 4px solid #3b82f6;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 15px;
}
.modal {
  max-height: 90vh;        /* modal ne sme biti višji od zaslona */
  overflow-y: auto;        /* omogoči scroll znotraj modala */
  -webkit-overflow-scrolling: touch; /* smooth scroll na iPhone */
}
.modal-backdrop {
  overflow: hidden; /* pomembno */
}


/* ===== GDPR BOX ===== */
.gdpr-box {
  background: #f9fafb;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
  font-size: 15px;
}
.gdpr-box ul {
  margin: 8px 0 12px 22px;
  padding: 0;
}
.gdpr-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.gdpr-link {
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 10px;
    display: inline-block;
  }

/* ===== BUTTONS ===== */
button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: 0.2s;
}
#start_btn {
  background: #1b7f5f;
  color: white;
}
#start_btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 13px;
}

.lang-btn:hover {
  background: #e5e7eb;
}


/* ===== STATUS ===== */
.status {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  display: none;
}
.sending {
  background: #fff7ed;
  border-left: 4px solid #f59e0b;
  display: block;
}
.gps-ok {
  background: #ecfdf5;
  border-left: 4px solid #16a34a;
  display: block;
}
.gps-error {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  display: block;
}

/* ===== LANGUAGE BUTTONS ===== */
.lang-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 14px;
}
.lang-btn:hover {
  background: #e5e7eb;
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  width: 92%;
  max-width: 480px;
  padding: 20px;
  border-radius: 16px;
  background: white;
  font-size: 16px;
  line-height: 1.5;
}

.modal h3 {
  font-size: 20px;
}
.modal h4 {
  margin-top: 18px;
  font-size: 17px;
}

.modal button {
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  margin-top: 18px;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  .card {
    padding: 18px;
  }
  button {
    padding: 16px;
    font-size: 17px;
  }
  .modal {
    padding: 18px;
  }
}
