/* ============================================================
   makro.labup.pl — style wspólne (nowoczesny UI)
   ============================================================ */

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

:root {
  --zielony: #10b981;
  --zielony-ciemny: #059669;
  --zielony-jasny: #d1fae5;
  --czerwony: #ef4444;
  --pomaranczowy: #f59e0b;
  --szary-tlo: #f9fafb;
  --szary-obramowanie: #e5e7eb;
  --szary-ciemny: #6b7280;
  --tekst: #111827;
  --cien: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --cien-duzy: 0 10px 25px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-maly: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--szary-tlo);
  color: var(--tekst);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER APLIKACJI
   ============================================================ */

.app-header {
  background: linear-gradient(135deg, var(--zielony) 0%, var(--zielony-ciemny) 100%);
  color: #fff;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header-left { display: flex; align-items: center; gap: 16px; }
.app-header-right { display: flex; align-items: center; gap: 10px; font-size: 14px; }

.app-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.btn-header {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-maly);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  display: inline-block;
}

.btn-header:hover { background: rgba(255,255,255,0.28); }

/* ============================================================
   GŁÓWNA ZAWARTOŚĆ
   ============================================================ */

.app-main {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 20px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--tekst);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

/* ============================================================
   SEKCJE / KARTY
   ============================================================ */

.admin-section {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--cien);
  margin-bottom: 20px;
  border: 1px solid var(--szary-obramowanie);
}

.admin-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--tekst);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   FORMULARZ
   ============================================================ */

.admin-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  color: var(--szary-ciemny);
  gap: 6px;
}

.admin-form input,
.admin-form select,
.login-box input {
  padding: 10px 14px;
  border: 1px solid var(--szary-obramowanie);
  border-radius: var(--radius-maly);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--tekst);
  transition: all 0.15s;
  width: 100%;
}

.admin-form input:focus,
.admin-form select:focus,
.login-box input:focus {
  outline: none;
  border-color: var(--zielony);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.btn-primary {
  background: var(--zielony);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-maly);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--zielony-ciemny);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.btn-secondary {
  background: #fff;
  color: var(--tekst);
  border: 1px solid var(--szary-obramowanie);
  padding: 11px 22px;
  border-radius: var(--radius-maly);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--szary-tlo);
  border-color: var(--szary-ciemny);
}

/* ============================================================
   TABELA UŻYTKOWNIKÓW
   ============================================================ */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-maly);
  border: 1px solid var(--szary-obramowanie);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead {
  background: var(--szary-tlo);
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--szary-ciemny);
  border-bottom: 1px solid var(--szary-obramowanie);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--szary-tlo);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--szary-tlo); }

.admin-table .actions {
  display: flex;
  gap: 6px;
}

.admin-table .actions button {
  background: transparent;
  border: 1px solid var(--szary-obramowanie);
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
  line-height: 1;
}

.admin-table .actions button:hover {
  background: var(--szary-tlo);
  border-color: var(--szary-ciemny);
  transform: translateY(-1px);
}

.admin-table .actions button.btn-danger:hover {
  background: #fee2e2;
  border-color: var(--czerwony);
}

.badge {
  display: inline-block;
  background: var(--szary-tlo);
  color: var(--szary-ciemny);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-admin {
  background: #fef3c7;
  color: #92400e;
}

.badge-private {
  display: inline-block;
  background: #ede9fe;
  color: #6d28d9;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}

/* ============================================================
   LOGIN
   ============================================================ */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%);
}

.login-box {
  background: #fff;
  padding: 40px 36px;
  border-radius: 16px;
  box-shadow: var(--cien-duzy);
  width: 100%;
  max-width: 420px;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo h1 {
  color: var(--zielony);
  font-size: 28px;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.login-subtitle {
  color: var(--szary-ciemny);
  font-size: 14px;
}

.login-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--szary-ciemny);
  margin-bottom: 6px;
  margin-top: 16px;
}

.login-box button {
  width: 100%;
  padding: 13px;
  margin-top: 24px;
  background: var(--zielony);
  color: #fff;
  border: none;
  border-radius: var(--radius-maly);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.login-box button:hover {
  background: var(--zielony-ciemny);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16,185,129,0.35);
}

.login-box button:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.komunikat {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
  font-weight: 500;
}

.komunikat.blad   { color: var(--czerwony); }
.komunikat.sukces { color: var(--zielony); }

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--szary-ciemny);
}

/* ============================================================
   DZIENNIK — layout (na przyszłość)
   ============================================================ */

.diary-main {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 20px;
}

@media (max-width: 800px) {
  .diary-main { grid-template-columns: 1fr; }
}

.calendar-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--cien);
  height: fit-content;
  border: 1px solid var(--szary-obramowanie);
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.calendar-nav button {
  background: var(--szary-tlo);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-maly);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}

.calendar-nav button:hover {
  background: var(--zielony-jasny);
  color: var(--zielony-ciemny);
}

.calendar-nav h2 {
  font-size: 15px;
  font-weight: 600;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  color: var(--szary-ciemny);
  font-weight: 600;
  padding: 6px 0;
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-maly);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.calendar-day:hover:not(.empty) {
  background: var(--zielony-jasny);
}

.calendar-day.empty { cursor: default; }

.calendar-day.today {
  background: var(--zielony-jasny);
  color: var(--zielony-ciemny);
  font-weight: 700;
}

.calendar-day.selected {
  background: var(--zielony);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */

@media (max-width: 600px) {
  .app-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .app-main { margin: 16px auto; padding: 0 12px; }
  .admin-section { padding: 20px; }
  .login-box { padding: 32px 24px; }
}





/* ============================================================
   DZIENNIK — sekcje posiłków
   ============================================================ */

.day-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--cien);
  border: 1px solid var(--szary-obramowanie);
}

.day-header h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--tekst);
}

.day-header input[type="date"] {
  padding: 8px 12px;
  border: 1px solid var(--szary-obramowanie);
  border-radius: var(--radius-maly);
  font-size: 14px;
  font-family: inherit;
}

.meal-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--cien);
  border: 1px solid var(--szary-obramowanie);
  overflow: hidden;
}

.meal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(to right, #f9fafb, #ffffff);
  border-bottom: 1px solid var(--szary-tlo);
}

.meal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--tekst);
}

.btn-add {
  background: var(--zielony);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-maly);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-add:hover {
  background: var(--zielony-ciemny);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(16,185,129,0.3);
}

.meal-entries {
  padding: 8px 18px 14px;
}

.empty-meal {
  color: #aaa;
  font-size: 13px;
  padding: 8px 0;
  font-style: italic;
}

.entry {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--szary-tlo);
}

.entry:last-child { border-bottom: none; }

.entry-info strong {
  font-size: 14px;
  color: var(--tekst);
}

.entry-masa {
  display: inline-block;
  color: var(--szary-ciemny);
  font-size: 13px;
  margin-left: 8px;
}

.entry-makro {
  font-size: 12px;
  color: var(--szary-ciemny);
  text-align: right;
}

.entry-makro strong {
  color: var(--zielony-ciemny);
}

.btn-del {
  background: transparent;
  border: 1px solid var(--szary-obramowanie);
  color: var(--czerwony);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
  line-height: 1;
}

.btn-del:hover {
  background: #fee2e2;
  border-color: var(--czerwony);
  transform: scale(1.1);
}

/* ============================================================
   PODSUMOWANIE DNIA
   ============================================================ */

.podsumowanie {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--cien);
}

.podsumowanie h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--zielony-ciemny);
  margin-bottom: 14px;
}

.suma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.suma-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suma-label {
  font-size: 12px;
  color: var(--szary-ciemny);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.suma-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--zielony-ciemny);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--szary-obramowanie);
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--szary-ciemny);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.modal-close:hover { background: var(--szary-tlo); }

.modal-body { padding: 22px; }

.modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--szary-ciemny);
  margin-bottom: 8px;
}

.modal-body input[type="text"],
.modal-body input[type="number"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--szary-obramowanie);
  border-radius: var(--radius-maly);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 14px;
  transition: all 0.15s;
}

.modal-body input:focus {
  outline: none;
  border-color: var(--zielony);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.wyniki-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--szary-obramowanie);
  border-radius: var(--radius-maly);
  margin-bottom: 14px;
}

.wyniki-list:empty { display: none; }

.wynik-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--szary-tlo);
  transition: background 0.1s;
}

.wynik-item:last-child { border-bottom: none; }
.wynik-item:hover { background: var(--zielony-jasny); }

.wynik-nazwa { font-size: 14px; }
.wynik-makro { font-size: 12px; color: var(--szary-ciemny); margin-top: 2px; }

.wybrany {
  background: var(--zielony-jasny);
  padding: 14px;
  border-radius: var(--radius-maly);
  margin-top: 10px;
}

.wybrany p {
  font-size: 13px;
  color: var(--tekst);
  margin-bottom: 6px;
}

.podglad {
  font-size: 14px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 6px;
  margin-top: 8px;
  color: var(--zielony-ciemny);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions button { flex: 1; }

/* ============================================================
   RESPONSYWNOŚĆ DZIENNIKA
   ============================================================ */

@media (max-width: 800px) {
  .entry {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .entry-makro { grid-column: 1 / -1; text-align: left; }
}






/* ============================================================
   LANDING — strona promocyjna
   ============================================================ */

.landing {
  background: #fff;
}

.landing-header {
  background: #fff;
  border-bottom: 1px solid var(--szary-obramowanie);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.landing-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-header .app-logo { color: var(--zielony); }

.landing-header .btn-header {
  background: var(--zielony);
  color: #fff;
}

.landing-header .btn-header:hover {
  background: var(--zielony-ciemny);
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  padding: 80px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--tekst);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 20px;
  color: #374151;
  margin-bottom: 12px;
  line-height: 1.5;
}

.hero-subtitle2 {
  font-size: 16px;
  color: var(--szary-ciemny);
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn-hero {
  display: inline-block;
  background: var(--zielony);
  color: #fff;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(16,185,129,0.35);
  transition: all 0.2s;
}

.btn-hero:hover {
  background: var(--zielony-ciemny);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16,185,129,0.45);
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--szary-ciemny);
}

/* --- SEKCJE --- */
.features-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.features-section h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--tekst);
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

.features-alt {
  background: var(--szary-tlo);
  max-width: 100%;
}

/* --- KROKI --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: left;
}

.step {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--szary-obramowanie);
  transition: all 0.2s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--cien-duzy);
  border-color: var(--zielony);
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--zielony);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--tekst);
}

.step p {
  font-size: 14px;
  color: var(--szary-ciemny);
  line-height: 1.5;
}

/* --- FUNKCJE --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  text-align: left;
}

.feature-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--szary-obramowanie);
  transition: all 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cien-duzy);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--tekst);
}

.feature-card p {
  font-size: 14px;
  color: var(--szary-ciemny);
  line-height: 1.5;
}

/* --- REKLAMA --- */
.ad-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.ad-box {
  background: repeating-linear-gradient(
    45deg,
    #f9fafb,
    #f9fafb 10px,
    #f3f4f6 10px,
    #f3f4f6 20px
  );
  border: 2px dashed var(--szary-obramowanie);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
}

.ad-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--szary-ciemny);
  font-weight: 700;
  margin-bottom: 6px;
}

.ad-text {
  font-size: 15px;
  color: var(--szary-ciemny);
}

/* --- CTA --- */
.cta-section {
  background: linear-gradient(135deg, var(--zielony) 0%, var(--zielony-ciemny) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta-section .btn-hero {
  background: #fff;
  color: var(--zielony);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cta-section .btn-hero:hover {
  background: #f9fafb;
  color: var(--zielony-ciemny);
}

/* --- STOPKA --- */
.landing-footer {
  background: #111827;
  color: #9ca3af;
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
}

.landing-footer p { margin-bottom: 4px; }

.footer-small {
  font-size: 12px;
  color: #6b7280;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero-subtitle { font-size: 17px; }
  .hero-subtitle2 { font-size: 14px; }
  .btn-hero { padding: 14px 28px; font-size: 16px; }
  .features-section { padding: 56px 20px; }
  .features-section h2 { font-size: 24px; margin-bottom: 32px; }
}



/* ============================================================
   IMPORT CSV
   ============================================================ */

.code-block {
  background: #1f2937;
  color: #e5e7eb;
  padding: 16px 20px;
  border-radius: var(--radius-maly);
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

.admin-section code {
  background: var(--szary-tlo);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Consolas", monospace;
  font-size: 13px;
  color: var(--zielony-ciemny);
}

.drop-zone {
  border: 2px dashed var(--szary-obramowanie);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  background: var(--szary-tlo);
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--zielony);
  background: var(--zielony-jasny);
}

.drop-zone.dragover { transform: scale(1.02); }

.drop-zone-icon { font-size: 48px; margin-bottom: 8px; }
.drop-zone p { font-size: 15px; color: var(--tekst); }
.drop-zone-sub { font-size: 13px; color: var(--szary-ciemny); margin: 6px 0; }

.file-name {
  margin-top: 12px;
  font-size: 14px;
  color: var(--zielony-ciemny);
  font-weight: 600;
}

.import-wynik {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius);
  border: 2px solid;
}

.import-wynik.sukces {
  background: var(--zielony-jasny);
  border-color: var(--zielony);
  color: var(--zielony-ciemny);
}

.import-wynik.blad {
  background: #fee2e2;
  border-color: var(--czerwony);
  color: var(--czerwony);
}

.import-wynik h3 { font-size: 18px; margin-bottom: 16px; }

.import-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-maly);
  background: #fff;
  border: 1px solid var(--szary-obramowanie);
}

.stat-num { font-size: 28px; font-weight: 800; line-height: 1; }

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  color: var(--szary-ciemny);
  font-weight: 600;
}

.stat-ok .stat-num   { color: var(--zielony); }
.stat-warn .stat-num { color: var(--pomaranczowy); }
.stat-err .stat-num  { color: var(--czerwony); }

.import-wynik details { font-size: 14px; }
.import-wynik summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.import-wynik details ul { padding-left: 24px; margin-top: 8px; }
.import-wynik details li { margin-bottom: 4px; font-size: 13px; }