/* --- JEDNOLITE STYLE (PLANER HARMONOGRAMU) --- */

:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #0f172a;
  --accent: #f97316;
  --muted: #475569;
  --card: #ffffff;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }

/* JEDNOLITE TŁO */
body {
  margin: 0;
  background: linear-gradient(180deg, #0f172a 0%, #f1f5f9 65%, #fff 100%);
  color:#e2e8f0;
  min-height: 100vh;
}

.container {
  width: min(1080px, 94vw);
  margin: 0 auto;
}

.page-header,
.page-footer {
  color: #f1f5f9;
}

/* JEDNOLITY HEADER I STOPKA */
.page-header .container {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
}
.page-footer .container {
  display: flex;
  gap: 8px; 
  align-items: center;
  justify-content: center; /* Wyśrodkowanie w poziomie */
  padding: 20px 0;
  flex-wrap: wrap;
}

.page-footer {
  background: rgba(15,23,42,0.92);
  font-size: 14px;
  text-align: center;
}

.page-footer a { color: #fbd38d; }

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.breadcrumbs a { color: #e2e8f0; text-decoration: none; }

/* JEDNOLITA SEKCJA HERO/INTRO */
.intro {
  margin: 64px auto 36px;
  text-align: center;
  color:#e2e8f0;
  width: min(720px, 100%);
}

.intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

/* JEDNOLITY BIAŁY PODTYTUŁ */
.intro p {
  margin: 0;
  color: #e2e8f0;
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 24px 50px rgba(15,23,42,0.35);
  color: var(--bg); /* Wprowadzamy kolor dla tekstu w karcie (ciemny) */
}

h2 {
    color: var(--bg);
}

/* Zmieniony label, żeby nie miał margin-bottom, jeśli nie jest to unikalne dla karty */
label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}

/* Ujednolicony wygląd inputów */
input,
textarea,
select {
  padding: 12px;
  border-radius: 12px;
  border:1px solid rgba(148,163,184,0.25);
  font: inherit;
  background: rgba(15,23,42,0.9);
  color: #e2e8f0;
}

/* Ujednolicony wygląd przycisków */
.btn-primary,
.btn-secondary,
.btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

/* Dostosowanie klas przycisków do jednolitego wzoru */
.btn,
.btn-secondary { background: #e2e8f0; color: var(--bg); }
.btn-primary { background: var(--accent); color: #fff; }

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover { transform: translateY(-2px); }


/* JEDNOLITY TEKST W STOPCE */
.footer-text {
    line-height: 1.4;
    color: #f1f5f9;
}

/* JEDNOLITY PRZYCISK W STOPCE */
.btn-buy-coffee {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-align: center;
  
  background: var(--accent); 
  color: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4); 
}

.btn-buy-coffee:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- KONIEC JEDNOLITYCH STYLÓW --- */


/* --- UNIKALNE STYLE DANE TWOJEJ FIRMY --- */

.company-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.company-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: center;
}

/* Dostosowanie stylu dla etykiety "Import JSON" (która działa jak przycisk) */
.company-actions label[for="companyImportFile"] {
  /* Nadpisanie domyślnego stylu label, aby wyglądała jak btn-secondary */
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  background: var(--border); /* #e2e8f0 */
  color: var(--bg); /* #0f172a */
}

.company-actions label[for="companyImportFile"]:hover {
  transform: translateY(-2px);
}

/* Styl dla przycisku reset (Wyczyść profil) */
.company-actions button[type="reset"] {
  background: #fecaca; /* jasnoczerwony */
  color: #b91c1c; /* ciemnoczerwony */
}

/* --- RESPONSYWNOŚĆ --- */

@media (max-width: 640px) {
  /* Zapewnia, że elementy w akcjach rozciągają się na pełną szerokość na urządzeniach mobilnych */
  .company-actions { flex-direction: column; align-items: stretch; } 
  .company-actions button,
  .company-actions label[for="companyImportFile"] { width: 100%; justify-content: center; }

  .page-header .container {
    justify-content: center;
    text-align: center;
  }
  .breadcrumbs { display: none; }
  
  /* Wyśrodkowanie w stopce na mobile */
  .page-footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px; 
  }
  .btn-buy-coffee {
    width: 100%;
    margin-top: 0;
  }
  .desktop-only {
    display: none;
  }
}