
body {
  margin: 0;
  font-family: sans-serif;
}
#controls {
  position: fixed;
  top: 10px;
  left: 10px;
  background: #fff;
  padding: 10px;
  z-index: 10;
  border: 1px solid #ccc;
}
#svg-wrapper {
  width: 100vw;
  height: 100vh;
}
#svg-wrapper, svg {
  touch-action: none;
  -ms-touch-action: none;
}

.marker {
  cursor: pointer;
  user-select: none;
}
.ghost-marker {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  font-size: 24px;
  color: red;
  transform: translate(-50%, -50%);
}

#controls button,
#right-panel button {
  display: block;
  width: 100%;
  font-size: 1.2em;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  background: #f0f0f0;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 768px) {
  #left-panel, #right-panel {
    position: fixed;
    bottom: 0;
    top: auto;
    width: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    gap: 1em;
    justify-content: space-around;
    padding: 10px;
    z-index: 10000;
    border-top: 1px solid #ddd;
  }

  #controls button,
  #right-panel button {
    flex: 1;
    margin: 0;
  }
}

.columns {
  display: flex;
  gap: 1rem;
}

.column {
  flex: 1;
  background: #fff;
  padding: 0.5rem;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
  min-height: 400px;
}

.column h2 {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 0;
}

.task-card {
  background: #e0e0e0;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.task-title {
  font-weight: bold;
}

.task-actions {
  margin-top: 0.5rem;
}

.task-actions button {
  margin-right: 0.5rem;
}

.task-card {
  cursor: grab;
}
.column {
  min-height: 400px;
}

.topbar {
  position: sticky;
  top: 0;
  background: #ecef00;
  z-index: 100;
  padding: 10px;
  border-bottom: 1px solid #ccc;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-title {
  font-size: 20px;
  font-weight: bold;
}

.topbar-title a.topbar-link {
  text-decoration: none;
  color: #0055aa;
  margin-left: 8px;
}

.topbar-title .topbar-active {
  font-weight: bold;
  color: #000;
  margin-left: 8px;
}

.topbar-user a {
  color: #0029ff;
  margin-left: 10px;
  text-decoration: none;
}

.topbar-user a:hover {
  text-decoration: underline;
}

.task-desc {
  font-size: 0.9em;
  color: #444;
  margin-top: 4px;
  white-space: pre-wrap;
}
.task-area {
  white-space: nowrap;
  font-style: italic;
  opacity: 0.8;
}

.task-date {
  font-size: 0.85em;
  color: #666;
  margin-top: 2px;
}
.task-date-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  color: #444;
}
.task-card.late {
  background-color: #f8d7da; /* jasnoczerwony */
  border-left: 6px solid #d9534f;
}
.task-card.today {
  background-color: #fff3cd; /* jasnożółty */
  border-left: 6px solid #f0ad4e;
}
.task-card.tomorrow {
  background-color: #d4edda; /* jasnozielony */
  border-left: 6px solid #9fcf9f;
}
.task-card.aftertomorrow {
  background-color: #c6dcf3;
  border-left: 6px solid #257ad3;
}

.user-manage-link {
  margin-left: 10px;
  color: #fff;
  text-decoration: underline;
}

.area-map-tooltip {
  position: fixed;
  width: 250px;
  height: 250px;
  pointer-events: none;
  z-index: 1000;
  background: white;
  border: 1px solid #aaa;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.map-wrapper {
  width: 100%;
  height: 100%;
}

.map-container svg {
  width: 100%;
  height: 100%;
}


#toggle-edit-areas.active {
  background: #ffe900;
  border: 1px solid #aaa;
  font-weight: bold;
}