/* Prosty reset i podstawowe style */
:root {
  --primary-bg: #f4f7f6;
  --card-bg: #ffffff;
  --text-color: #333;
  --primary-color: #007bff;
  --event-color: #ffc107;
  --border-radius: 8px;
  --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  margin: 0;
  padding: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header h1 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

/* Układ główny */
.main-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* Kalendarz */
.calendar-section h2 {
  text-align: center;
  margin-top: 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}
.day-name {
  font-weight: bold;
  padding-bottom: 0.5rem;
}
.day {
  padding: 0.8rem 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.day:not(.empty):hover {
    background-color: #e9ecef;
}
.event-day {
  background-color: var(--event-color);
  color: #fff;
  font-weight: bold;
}

/* Listy wydarzeń i autobusów */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}
.sidebar li:last-child {
  border-bottom: none;
}

/* Formularz */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}
.form-group input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* Ważne dla inputów */
}
button, .btn-add-event {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  margin-top: 1rem;
}
.back-link {
    display: block;
    margin-top: 1rem;
    text-align: center;
}

/* Responsywność */
@media (max-width: 768px) {
  .main-layout {
    grid-template-columns: 1fr; /* Zmiana na jedną kolumnę */
  }
  .sidebar {
      order: -1; /* Przenosi wydarzenia i autobusy na górę na mobilkach */
  }
}
/* Style dla nawigacji miesiąca */
.month-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.month-navigation h2 {
  margin: 0;
  flex-grow: 1;
  text-align: center;
}

.nav-arrow {
  font-size: 2rem;
  text-decoration: none;
  color: var(--primary-color);
  padding: 0 1rem;
  border-radius: 50%;
}
.nav-arrow:hover {
  background-color: #e9ecef;
}


/* Style dla przełącznika tras autobusów */
.route-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.route-switcher a {
  text-decoration: none;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  transition: background-color 0.2s, color 0.2s;
}

.route-switcher a.active {
  background-color: var(--primary-color);
  color: #fff;
}
.route-switcher a:not(.active):hover {
    background-color: #e0f7ff;
}
/* Styl dla wyróżnienia dzisiejszego dnia w kalendarzu */
.day.today {
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  font-weight: bold;
}

/* Style dla listy wydarzeń z przyciskami */
.event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid #eee;
}

.event-item:last-child {
  border-bottom: none;
}

.event-actions {
  display: flex;
  gap: 10px;
}

.btn-edit, .btn-delete {
  padding: 0.3rem 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9em;
}

.btn-edit {
  background-color: #ffc107; /* Żółty */
  color: #333;
}

.btn-delete {
  background-color: #dc3545; /* Czerwony */
  color: white;
}
/* Style dla rozkładu jazdy pociągów */
