/* ==========================================================================
   SerwisTerminarz - Profesjonalny Styl dla Serwisanta HVAC
   ========================================================================== */

:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --secondary: #475569;
  --secondary-light: #f1f5f9;
  
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Kolory typów zleceń */
  --type-przeglad: #0284c7;     /* Błękitny - Przegląd */
  --type-awaria: #dc2626;       /* Czerwony - Awaria */
  --type-montaz: #16a34a;       /* Zielony - Montaż */
  --type-uruchomienie: #9333ea; /* Fioletowy - Uruchomienie */
  --type-diagnoza: #ea580c;     /* Pomarańczowy - Diagnoza */

  /* Kolory statusów */
  --status-zaplanowane: #3b82f6;
  --status-wtrakcie: #f59e0b;
  --status-czesci: #8b5cf6;
  --status-zakonczone: #10b981;
  --status-odwolane: #94a3b8;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

/* IKONY SVG */
.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* GŁÓWNY KONTENER */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

/* PASEK GÓRNY */
.top-nav {
  height: 64px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 20;
  box-shadow: var(--shadow-sm);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo-icon {
  font-size: 26px;
  line-height: 1;
}

.logo-text h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.logo-text h1 span {
  color: var(--primary);
}

.badge-pro {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.quick-stats {
  display: flex;
  gap: 12px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  background: var(--secondary-light);
  border: 1px solid var(--border);
}

.stat-pill.today-stat {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.stat-pill.pending-stat {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}

/* UKŁAD GŁÓWNY */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: 270px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  gap: 24px;
  overflow-y: auto;
  transition: transform 0.25s ease;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 10px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
}

.nav-link:hover {
  background-color: var(--secondary-light);
}

.nav-link.active {
  background-color: var(--primary);
  color: #ffffff;
}

.nav-link.active .icon {
  fill: #ffffff;
}

.badge-counter {
  margin-left: auto;
  background: var(--type-awaria);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 12px;
}

/* FILTRY W SIDEBARZE */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.filter-chip:hover {
  background: var(--secondary-light);
}

.filter-chip.active {
  background: var(--secondary-light);
  font-weight: 700;
  border-color: var(--border);
}

.filter-chip input {
  display: none;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-przeglad { background: var(--type-przeglad); }
.dot-awaria { background: var(--type-awaria); }
.dot-montaz { background: var(--type-montaz); }
.dot-uruchomienie { background: var(--type-uruchomienie); }

.backup-section {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.backup-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* GŁÓWNA TREŚĆ */
.content-area {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.tab-content {
  display: none;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.tab-content.active {
  display: flex;
}

/* PRZYCISKI OGÓLNE */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--secondary-light);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-main);
}
.btn-outline:hover {
  background: var(--secondary-light);
}

.btn-danger {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}
.btn-danger:hover {
  background: #fca5a5;
  color: #991b1b;
}

.btn-success {
  background: #16a34a;
  color: #fff;
}
.btn-success:hover {
  background: #15803d;
}

.btn-call {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.btn-call:hover {
  background: #d1fae5;
}

.btn-nav {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.btn-nav:hover {
  background: #dbeafe;
}

/* TOOLBAR KALENDARZA */
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.cal-nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-left: 8px;
  min-width: 170px;
}

.segmented-control {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: var(--radius-md);
}

.seg-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.seg-btn.active {
  background: #fff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* WIDOKI KALENDARZA */
.view-panel {
  display: none;
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.view-panel.active {
  display: flex;
  flex-direction: column;
}

/* SIATKA MIESIĘCZNA */
.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--secondary-light);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 0;
}

.calendar-grid-header .weekend {
  color: #94a3b8;
}

.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(110px, 1fr);
  flex: 1;
  overflow-y: auto;
}

.cal-day-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 110px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.cal-day-cell:nth-child(7n) {
  border-right: none;
}

.cal-day-cell:hover {
  background-color: #f8fafc;
}

.cal-day-cell.other-month {
  background: #fcfcfd;
  opacity: 0.45;
}

.cal-day-cell.today {
  background: #f0f7ff;
}

.cal-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.cal-day-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cal-day-cell.today .cal-day-number {
  background: var(--primary);
  color: #fff;
}

.cal-day-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 10px;
  padding: 1px 6px;
}

.cal-day-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  max-height: 95px;
}

/* PRZYPINKA ZLECENIA W KALENDARZU */
.event-chip {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border-left: 3px solid;
  background: #f1f5f9;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.event-chip:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.event-chip.type-przeglad {
  border-left-color: var(--type-przeglad);
  background: #e0f2fe;
}
.event-chip.type-awaria {
  border-left-color: var(--type-awaria);
  background: #fee2e2;
  color: #991b1b;
}
.event-chip.type-montaz {
  border-left-color: var(--type-montaz);
  background: #dcfce7;
}
.event-chip.type-uruchomienie {
  border-left-color: var(--type-uruchomienie);
  background: #f3e8ff;
}
.event-chip.type-diagnoza {
  border-left-color: var(--type-diagnoza);
  background: #ffedd5;
}

.event-chip.status-zakonczone {
  opacity: 0.65;
  text-decoration: line-through;
}

.event-time {
  font-size: 10px;
  opacity: 0.8;
  font-weight: 700;
}

/* WIDOK TYGODNIOWY I DZIENNY */
.week-view-container, .day-view-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  gap: 12px;
}

.time-slot-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  transition: border-color 0.15s;
}

.time-slot-card:hover {
  border-color: var(--primary);
}

.time-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--secondary-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  min-width: 80px;
  text-align: center;
  border: 1px solid var(--border);
}

.time-badge .end-time {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.card-details {
  flex: 1;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-notes {
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #334155;
  border-left: 3px solid #94a3b8;
  margin-bottom: 10px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ZAKŁADKI KLIENCI, PLAN DNIA, RENEWALS */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 800;
}

.subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.search-box {
  width: 320px;
  max-width: 100%;
}

.clients-grid, .renewals-grid, .agenda-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.client-card, .renewal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.client-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.client-name {
  font-size: 16px;
  font-weight: 700;
}

.client-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.client-address {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.devices-list {
  background: var(--secondary-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 12px;
}

.renewal-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.renewal-urgent {
  background: #fee2e2;
  color: #dc2626;
}

.renewal-upcoming {
  background: #fef3c7;
  color: #b45309;
}

/* FORMULARZE I MODALE */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-container.modal-lg {
  max-width: 800px;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--secondary-light);
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 800;
}

.btn-close-modal {
  font-size: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.form-row {
  display: flex;
  gap: 12px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-divider {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.input-field {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  color: var(--text-main);
  transition: border-color 0.15s;
}

.input-field:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* PROTOKÓŁ SERWISOWY (DO DRUKU I EKRANOWY) */
.protocol-sheet {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  font-size: 13px;
  color: #1e293b;
}

.protocol-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.protocol-title h2 {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

.protocol-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.info-box {
  background: #f8fafc;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.info-box h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.checklist-table, .costs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.checklist-table th, .checklist-table td,
.costs-table th, .costs-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  font-size: 12px;
}

.checklist-table th, .costs-table th {
  background: #f1f5f9;
  text-align: left;
  font-weight: 700;
}

.signatures-row {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 10px;
}

.sig-box {
  width: 220px;
  border-top: 1px dashed #64748b;
  text-align: center;
  padding-top: 8px;
  font-size: 11px;
  color: #64748b;
}

/* DRUKOWANIE PROTOKOŁU */
@media print {
  body * {
    visibility: hidden;
  }
  .modal-overlay.active, #modal-protocol, #modal-protocol * {
    visibility: visible;
  }
  .modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: none;
    padding: 0;
  }
  .modal-container {
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }
  .no-print, .modal-header, .modal-footer {
    display: none !important;
  }
  .protocol-sheet {
    border: none;
    padding: 0;
  }
}

/* TOAST POWIADOMIENIA */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

.toast {
  background: #1e293b;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.2s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSYWNOŚĆ / WERSJA MOBILNA NA TELEFON */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex;
  }
  
  .top-nav {
    padding: 0 12px;
    height: 56px;
  }

  .nav-center {
    display: none;
  }

  .btn-text {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 60px;
    z-index: 30;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content-area {
    padding: 12px;
    padding-bottom: 74px; /* margines na dolną belkę */
  }

  .calendar-grid-days {
    grid-auto-rows: minmax(75px, 1fr);
  }

  .cal-day-cell {
    min-height: 75px;
    padding: 4px;
  }

  .cal-day-events {
    max-height: 60px;
  }

  .event-chip {
    font-size: 10px;
    padding: 2px 4px;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 40;
    padding: 0 4px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    flex: 1;
    height: 100%;
    cursor: pointer;
  }

  .bottom-nav-item.active {
    color: var(--primary);
  }

  .bottom-nav-item.active .icon {
    fill: var(--primary);
  }

  .bottom-nav-item.btn-highlight {
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin-top: -16px;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
  }
  .bottom-nav-item.btn-highlight .icon {
    fill: #fff;
    width: 24px;
    height: 24px;
  }
  .bottom-nav-item.btn-highlight span {
    display: none;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* STATUS PILLS */
.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}
.status-zaplanowane { background: #dbeafe; color: #1d4ed8; }
.status-w_trakcie { background: #fef3c7; color: #b45309; }
.status-czesci { background: #ede9fe; color: #6d28d9; }
.status-zakonczone { background: #dcfce7; color: #15803d; }
.status-odwolane { background: #f1f5f9; color: #64748b; }

/* PIN AUTH KEYPAD */
.btn-pin {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-pin:active {
  background: #2563eb;
  color: #ffffff;
  transform: scale(0.94);
  border-color: #2563eb;
}
.pin-dot.filled {
  background: #2563eb !important;
  border-color: #2563eb !important;
  transform: scale(1.15);
}


