/*
 * 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.
 */

/* ── class_schedules#show layout ── */

#schedule-show-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

#course-main {
  flex: 2;
  min-width: 0;
  margin-bottom: 2rem;
}

#sidebar {
  flex: 1;
  min-width: 260px;
  max-width: 320px;
}

#thumbnail-description-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

#course-thumbnail {
  width: 25%;
  flex-shrink: 0;
  border: none;
}

#course-description {
  flex: 1;
  min-width: 0;
  width: 75%;
}

/* ── Admin course form: thumbnail upload two-column layout ── */

#thumbnail-upload {
  margin-bottom: 1.5rem;
}

#thumbnail-upload-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
}

#thumbnail-preview {
  width: 140px;
  flex-shrink: 0;
}

#thumbnail-upload-control {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
