/* Reset / baza */
* { box-sizing: border-box; }
body { display:flex; justify-content:center; background:#FFF; margin:0; }
.wrapper { max-width:1600px; width:100%; margin:0 auto; }

main { width:1600px; margin:120px auto 0; background:#FFF; }

/* NAVBAR */
.navbar {
  max-width:1600px; width:100%; margin:0 auto;
  padding:10px 145px 10px 115px;
  display:flex; justify-content:space-between; align-items:center;
  border-bottom:5px solid #CCD615; background:#FFF;
  position:fixed; top:0; left:0; right:0;
  z-index: 3000;
}
.navbar-frame { display:flex; align-items:center; gap:10px; }
.navbar-title { color:#000; font-family:'Geist',sans-serif; font-size:40px; font-weight:900; margin:0; }
.navbar-menu { display:flex; gap:40px; align-items:flex-start; flex-wrap:nowrap; white-space:nowrap; }
.navbar-item { display:flex; flex-direction:column; align-items:center; }
.icon-box { height:45px; display:flex; align-items:center; justify-content:center; }
.menu-icon { display:block; aspect-ratio:1/1; object-fit:contain; }
.icon-search{width:40px;height:40px;} .icon-jobbing{width:45px;height:45px;}
.icon-chat{width:25px;height:25px;} .icon-account{width:25px;height:25px;}
.menu-text { color:#000; font-family:'Geist',sans-serif; font-size:16px; font-weight:500; line-height:26px; margin-top:4px; }
.navbar-menu a { text-decoration:none; color:inherit; }

/* Tytuł sekcji */
.section-title {
  width:1280px; margin:0 auto 20px; text-align:center;
  font-family:'Geist',sans-serif; font-size:32px; font-weight:700; color:#000;
}

/* GŁÓWNY PANEL */
.offer-panel {
  position:relative; /* dla overlaya */
  width:1280px; margin:0 auto; background:#FFF;
  border:2px solid #000; border-radius:20px; display:flex; overflow:hidden;
  transition: transform 1s ease, opacity 1s ease;
  will-change: transform, opacity;
  min-height: 832px;
}

/* Lewa kolumna */
.filters {
  width:300px; border-right:2px solid #000; position:relative; overflow:hidden;
  border-top-left-radius:20px; border-bottom-left-radius:20px; padding:0;
}
.filters-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.company-info { position:absolute; bottom:20px; left:15px; display:flex; align-items:center; gap:15px; }
.company-logo { width:60px; height:60px; border-radius:50%; object-fit:cover; }
.company-name { color:#000; font-family:'Geist',sans-serif; font-size:20px; font-weight:600; }

/* Prawa kolumna */
.offers { flex:1; padding:16px; }
.offers-header { display:flex; justify-content:space-between; align-items:center; }
#title { color:#000; font-family:'Geist',sans-serif; font-size:48px; font-weight:600; margin:0; }
#rate-box {
  padding:10px 16px; border:1px solid #000; border-radius:12px; background:rgba(255,255,255,0.9);
  color:#000; font-family:'Geist',sans-serif; font-size:16px; font-weight:400; white-space:nowrap;
}

/* Lokalizacja i harmonogram */
.location-wrapper, .schedule-wrapper { display:flex; align-items:center; gap:8px; }
.location-wrapper { margin-top:30px; }
.location-icon, .schedule-icon { width:30px; height:30px; }
#location { color:#000; font-family:'Geist',sans-serif; font-size:20px; font-weight:400; }
#schedule { color:#000; font-family:'Geist',sans-serif; font-size:18px; font-weight:400; }

/* Opis */
.description-box { border:1px solid #000; border-radius:12px; padding:16px; margin-top:16px; background:#fff; }
.description-header { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.description-icon { width:30px; height:30px; }
.description-title { color:#000; font-family:'Geist',sans-serif; font-size:18px; font-weight:600; }
#description { color:#000; font-family:'Geist',sans-serif; font-size:16px; font-weight:400; line-height:150%; margin:0; }

/* Skille */
.skills-box { border:1px solid #000; border-radius:12px; padding:16px; margin-top:16px; background:#fff; }
.skills-header { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.skills-icon { width:30px; height:30px; }
.skills-title { color:#000; font-family:'Geist',sans-serif; font-size:18px; font-weight:600; }
.skills-list { display:flex; flex-wrap:wrap; gap:8px; }
.skills-list span {
  background:#f0f0f0; border-radius:8px; padding:6px 12px;
  font-family:'Geist',sans-serif; font-size:14px; font-weight:500; color:#000;
}

/* Przyciski */
.buttons-container { display:flex; justify-content:center; gap:40px; margin-top:20px; }
.btn {
  padding:15px 70px; border:none; font-family:'Geist',sans-serif; font-size:18px; font-weight:600;
  cursor:pointer; border-radius:50px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform:scale(1.05); opacity:0.9; }
.btn-reject { background:#FFFFFF; color:#7D8490 ; border: 0.5px solid #7D8490; }
.btn-accept { background:#CCD615;; color:#000; }

/* STANY ANIMACJI KARTY */
.offer-panel.center { transform: translateX(0) scale(1); opacity:1; }
.offer-panel.to-left { transform: translateX(-150%); opacity:0; }
.offer-panel.to-right { transform: translateX(150%); opacity:0; }
.offer-panel.spawn { transform: scale(0.92); opacity:0; }
.offer-panel.no-anim { transition: none !important; }

/* OVERLAY DECYZJI (na środku karty) */
.decision-overlay {
  position: fixed;      /* zamiast absolute */
  top: 0; left: 0; right: 0; bottom: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2000;        /* dużo wyżej niż karta */
}
.decision-overlay.active { opacity:1; }
.decision-badge {
  display:inline-flex; align-items:center; gap:12px;
  padding:14px 18px; border-radius:999px;
  background:rgba(255,255,255,0.92); border:1px solid #000;
  transform:scale(0.95); transition: transform 0.35s ease;
}
.decision-overlay.active .decision-badge { transform:scale(1); }
.decision-badge img { width:28px; height:28px; display:block; }
.decision-badge span { font-family:'Geist',sans-serif; font-size:18px; font-weight:600; color:#000; }
.decision-overlay.accept .decision-badge { box-shadow:0 0 0 12px rgba(129,201,149,0.25); }
.decision-overlay.reject .decision-badge { box-shadow:0 0 0 12px rgba(242,139,130,0.25); }


.btn-reset {
  background-color: #ffd966;
  color: #000;
  margin-top: 20px;
}

.btn-reset:hover {
  background-color: #ffec99;
}



/* ====== PODSTRONA: MOJE KONTO ====== */

/* Główny kontener  */
.account-box {
  width: 1280px;
  margin: 20px auto 0;
  background: #FFF;
  border: 2px solid #000;
  border-radius: 20px;
  padding: 20px;
}

/* Sekcje wewnątrz konta w równych odstępach */
.account-section + .account-section { margin-top: 20px; }

/* Karta – wspólny wygląd dla wszystkich boksów (Umiejętności, Lokalizacja, Stawka) */
.account-card {
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

/* Pasek tytułu wewnątrz karty (w środku boxa) */
.account-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ccc;
}

.account-title {
  font-family: 'Geist', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

/* ---------- Umiejętności (uniwersalnie) ---------- */

/* Jeśli używasz skills-picker JAKO kartę – ma ramkę itd. */
.skills-picker {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #000;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

/* Jeśli skills-picker siedzi WEWNĄTRZ .account-card – nie powielaj ramki/paddingu */
.account-card .skills-picker {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.skills-label {
  display: block;
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000;
}

.skills-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.skills-field {
  position: relative;
  flex: 1;
  min-width: 0; /* pozwala inputowi rozciągać się poprawnie */
}

#skill-input {
  width: 100%;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

.skills-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;          /* zamiast width:100% — pewniejsze w kontenerach */
  background: #fff;
  border: 1px solid #000;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px 0;
  z-index: 20;
}
.skills-dropdown.hidden { display: none; }

.skills-option {
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  color: #000;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.skills-option:hover,
.skills-option.active { background: #f5f5f5; }

.skills-hint {
  margin: 8px 0 12px 0;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: #444;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}

.skills-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f0f0f0;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: #000;
}

.chip .remove {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  color: #333;
}
.chip .remove:hover { opacity: 0.7; }


/* ---------- Lokalizacja ---------- */

.account-card.location,
.account-card.rate,
.account-card.skills {
  width: 100%;              /* pełna szerokość */
  box-sizing: border-box;
  border: 1px solid #000;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  margin-top: 20px;
}

/* Wspólny wiersz etykieta + pole */
.account-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 12px;
}

.account-label {
  flex: 0 0 160px;          /* stała szerokość etykiety */
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

/* Pola wyboru/liczbowe */
.account-select,
.account-number,
#skill-input {
  flex: 1;                  /* rozciąga się na resztę */
  border: 1px solid #000;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}


/* ---------- Stawka ---------- */

.rate-grid {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  width: 100%;
}

.rate-field {
  flex: 1;                  
  display: flex;
  align-items: center;
  gap: 12px;
}

.number-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suffix {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: #333;
}

.rate-sliders {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  width: 100%;
}

.rate-sliders input[type="range"] {
  width: 100%;
}

.rate-hint {
  margin-top: 8px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: #444;
}



/* ===== Mój jobbing ---- NOWA STRONA ===== */
.jobbing-box {
  width: 1280px;
  margin: 0 auto;
  background: #FFF;
  border: 2px solid #000;
  border-radius: 20px;
  padding: 20px;
}

.jobbing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.jobbing-title {
  margin: 0;
  font-family: 'Geist', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #000;
}

.jobs-list {
  display: grid;
  grid-template-columns: 1fr 1fr; /* dwa słupki kart na desktop */
  gap: 16px;
}

.job-card {
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
}

.job-card .logo {
  width: 80px; height: 80px; border-radius: 12px; object-fit: cover;
  border: 1px solid #e0e0e0; background: #fafafa;
}

.job-card .meta {
  display: grid;
  gap: 4px;
}

.job-card .title {
  font-family: 'Geist', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000; margin: 0;
}

.job-card .row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-family: 'Geist', sans-serif; font-size: 14px; color: #222;
}

.job-card .chip {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}

.job-card .actions {
  margin-top: 6px;
  display: flex; gap: 8px;
}

.job-card .btn-outline {
  padding: 8px 12px;
  border: 1px solid #000;
  border-radius: 10px;
  background: #fff;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.jobs-empty {
  margin-top: 10px;
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  color: #333;
}
.hidden { display: none; }


/* ===== Licznik na ikonce ===== */

.jobbing-item {
  position: relative;
}

.jobbing-badge {
  position: absolute;
  bottom: -2px;   /* przesunięcie do rogu */
  right: -6px;
  background: #CCD615;
  color: #000;
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #000;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3100;
}

.jobbing-badge.hidden {
  display: none;
}
