/* --- MAIN SHARED STYLES (for all devices) --- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --background-color: #f8f9fa;
  --table-bg: #ffffff;
  --border-color: #dee2e6;
  --text-primary: #212529;
  --text-secondary: #495057;
  --accent-color: #4C6EF5;
  --accent-hover: #4263Eb;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
}

body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
  background-color: var(--background-color);
  margin: 0;
  color: var(--text-primary);
}

/* --- Main Header (Shared) --- */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--background-color);
  z-index: 100;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

h1 {
  text-align: center;
  margin: 0 0 16px 0;
  font-size: 32px;
  color: var(--text-primary);
  font-weight: 800;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  align-items: center;
}

.controls label, button {
  font-size: 14px;
  cursor: pointer;
}

button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: var(--accent-hover);
}

/* --- Timetable Content Cells (Shared) --- */
/* This is the "bubble" style */
.subject {
  display: block;
  padding: 4px 10px;
  border-radius: 18px;
  font-weight: 700;
  color: #34495E;
  font-size: 14px;
  border: 1px solid #adb5bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px; /* Prevents bubbles from becoming too wide */
  margin: 0 auto; /* Centers the bubble in the cell */
}

/* This is the room number style */
.room {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* This is the time range style */
.range {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
}