* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a { 
    text-decoration:none; 
    color: #005cc5; 
    font-size:1.1em; 
}
body.dark a {
    text-decoration:none; 
    color: #81c7ff; 
    font-size:1.1em; 
}

body.dark a:hover {
    color: #fff;
}
a:hover {
    color: #000;
}

html, body {
  height: 100%;
}

.container {
  width: min(92%, 1200px);
  margin: 0 auto;
  padding: 24px 0;
  flex: 1;
}

.header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

body.dark .header-line {
  border-bottom-color: #333;
}

h1 {
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #111;
  margin: 0;
}
@media(max-width: 1334px) {
    h1 {
        margin-left: 30px;
    }
}
@media(max-width: 900px) {
    h1 {
        margin-left: 55px;
    }
}

body.dark h1 {
  color: #f0f0f0;
}

.group-select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.6em;
  background: #fafafa;
  color: #111;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0px;
}

.group-select:hover {
  background: #f0f0f0;
  border-color: #999;
}

.group-select:focus {
  outline: none;
  border-color: #4a90e2;
  background: #fff;
}

body.dark .group-select {
  background: #1e1e1e;
  border-color: #444;
  color: #eee;
}

body.dark .group-select:hover {
  background: #252525;
  border-color: #666;
}

body.dark .group-select:focus {
  border-color: #4a90e2;
  background: #2a2a2a;
}

#group-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1.5px solid #4a90e2;
  background: #fff;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.9em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  height: 34px;
}

#group-select:hover {
  border-color: #357abd;
  box-shadow: 0 2px 5px rgba(74,144,226,0.25);
}

#group-select:focus {
  outline: none;
  border-color: #2e6bb8;
  box-shadow: 0 0 0 3px rgba(74,144,226,0.2);
}

body.dark #group-select {
  background: #1e1e1e;
  color: #eee;
  border-color: #3a7ed9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

body.dark #group-select:hover {
  border-color: #559cff;
  box-shadow: 0 2px 5px rgba(85,156,255,0.3);
}

.view-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.view-buttons button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #e0e0e0;
  color: #111;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.view-buttons button:hover {
  background: #d0d0d0;
}

.view-buttons button.active {
  background: #4a90e2;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(74,144,226,0.3);
}

body.dark .view-buttons button {
  background: #2a2a2a;
  color: #eee;
}

body.dark .view-buttons button.active {
  background: #4a90e2;
}

.schedule-block {
  margin-top: 10px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

body.dark .schedule-block {
  background: #1e1e1e;
}

.schedule-item {
  padding: 8px 10px;
  border-left: 4px solid #4a90e2;
  margin-bottom: 8px;
  border-radius: 4px;
  background: rgba(74,144,226,0.05);
}

body.dark .schedule-item {
  background: rgba(255,255,255,0.06);
}

.schedule-item h4 {
  margin-bottom: 4px;
  font-size: 0.95em;
}

.schedule-item p {
  margin: 0;
  font-size: 0.85em;
  color: #444;
}

body.dark .schedule-item p {
  color: #ccc;
}

.week-grid, .calendar {
  display: grid;
  gap: 6px;
}

.week-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.calendar {
  grid-template-columns: repeat(7, 1fr);
}

.week-day, .month-day {
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.week-day:hover, .month-day:hover {
  transform: translateY(-3px);
  background: #f0f7ff;
}

body.dark .week-day, body.dark .month-day {
  background: #2a2a2a;
}

body.dark .week-day:hover, body.dark .month-day:hover {
  background: #303030;
}

.month-day.today, .calendar-day.today {
  outline: 2px solid #4a90e2;
  outline-offset: -2px;
}

.month-day.selected {
  background: #4a90e2;
  color: #fff;
}

/* === Month navigation === */
.month-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}

.month-navigation button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  background: #4a90e2;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.month-navigation button:hover {
  background: #357abd;
}

body.dark .month-navigation button {
  background: #2a6cb0;
}

body.dark .month-navigation button:hover {
  background: #1f4f80;
}

footer {
  text-align: center;
  padding: 12px;
  background: #eee;
  color: #333;
  font-size: 0.9em;
  margin-top: 20px;
}

body.dark footer {
  background: #1a1a1a;
  color: #aaa;
}

@media(max-width:900px){
  .left-drawer { width: 80%; }
}

.view-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.view-buttons button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #e8e8e8;
  color: #111;
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.view-buttons button:hover {
  background: #dcdcdc;
  transform: translateY(-2px);
}

.view-buttons button.active {
  background: #4a90e2;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(74,144,226,0.3);
}

body.dark .view-buttons button {
  background: #2a2a2a;
  color: #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

body.dark .view-buttons button:hover {
  background: #333;
}

body.dark .view-buttons button.active {
  background: #4a90e2;
  color: #fff;
  box-shadow: 0 3px 8px rgba(74,144,226,0.4);
}
