/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

header {
  background-color: #333;
  color: white;
  padding: 1rem;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand a {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
}

.nav-links a:hover {
  color: white;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ccc;
}

.nav-user a {
  color: #ccc;
  text-decoration: none;
}

.nav-user a:hover {
  color: white;
}

.nav-user form {
  margin: 0;
}

.nav-user button {
  background: none;
  border: 1px solid #666;
  color: #ccc;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.nav-user button:hover {
  background-color: #555;
  color: white;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.week-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 4px;
}

.week-navigation a {
  padding: 0.25rem;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .week-navigation a {
    padding: 0.5rem 1rem;
  }
}

.week-navigation a:hover {
  background: #555;
}

.weekly-schedule {
  width: 100%;
  border-collapse: collapse;
}

.weekly-schedule th,
.weekly-schedule td {
  border: 1px solid #ddd;
  padding: 0.25rem;
  text-align: center;
  vertical-align: top;
  min-width: 100px;
}

.weekly-schedule th {
  background: #f5f5f5;
  padding: 0.5rem;
}

.time-slot {
  width: 60px;
  background: #f9f9f9;
  font-size: 0.8rem;
}

.has-session {
  background: #e3f2fd;
}

.class-session {
  padding: 0.25rem;
  font-size: 0.75rem;
  border-radius: 4px;
  margin: 0.1rem 0;
}

.class-session small {
  opacity: 0.8;
}
