/* Meetings in the Asmeli "bold" look (design approved 27 Nov 2026, inspired by code.xr).
 *
 * Scoped to the student Meetings page (.meetings-workspace) inside the glass shell. A deep
 * blue band behind the header, a large glowing "live now" card for a meeting that is running,
 * frosted white cards with a date tile for the rest, and pill filters on the blue.
 * Colours come from tokens.css (--as-*); a customer theme changes --as-primary and friends.
 * lite-mode.css (loaded last) still removes blur and heavy shadows on weak phones.
 */

html.app-glass body:has(.meetings-workspace) {
  background-color: var(--as-canvas, #f3f7ff) !important;
  background-image:
    radial-gradient(340px 340px at 50% 260px, rgba(110, 149, 242, 0.55), rgba(110, 149, 242, 0) 70%),
    linear-gradient(180deg, var(--as-primary-active, #12245c) 0px, var(--as-primary, #2341a0) 220px, #6e95f2 430px, var(--as-canvas, #eef3ff) 780px) !important;
  background-attachment: scroll !important;
}

/* Header text sits on the blue band. */
html.app-glass body:has(.meetings-workspace) .main-panel > .page-header h1,
html.app-glass body:has(.meetings-workspace) .main-panel .page-header h1 {
  color: #ffffff !important;
}

html.app-glass body:has(.meetings-workspace) .main-panel .page-header p {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Filters: pill tabs on a darker strip, active tab white. */
html.app-glass .main-panel .meetings-workspace .meeting-filters {
  background: rgba(18, 36, 92, 0.34) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 18px !important;
  padding: 5px !important;
}

html.app-glass .main-panel .meetings-workspace .meeting-filters button {
  border-radius: 14px !important;
  color: #ffffff !important;
  font-weight: 700;
  min-height: 42px;
}

html.app-glass .main-panel .meetings-workspace .meeting-filters button[aria-pressed="true"] {
  background: #ffffff !important;
  box-shadow: 0 8px 18px -8px rgba(16, 40, 120, 0.6) !important;
  color: var(--as-primary-active, #1b337b) !important;
  font-weight: 800;
}

/* Feedback line under the filters stays readable on the band. */
html.app-glass .main-panel .meetings-workspace #meetingFeedback:not(:empty) {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  color: var(--as-text, #10192b);
  padding: 8px 12px;
}

/* Every meeting: a frosted white card with a date tile. */
html.app-glass .main-panel .meetings-workspace .meeting-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)) !important;
  border: 1px solid #ffffff !important;
  border-radius: 28px !important;
  box-shadow: 0 22px 50px -14px rgba(16, 40, 120, 0.4), inset 0 1px 0 #ffffff !important;
  position: relative;
}

html.app-glass .main-panel .meetings-workspace .meeting-date-tile {
  align-items: center;
  background: linear-gradient(145deg, #3b63e0, var(--as-primary-active, #1b337b));
  border-radius: 18px;
  box-shadow: 0 10px 20px -8px rgba(35, 65, 160, 0.8);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  min-height: 58px;
  width: 58px;
}

html.app-glass .main-panel .meetings-workspace .meeting-date-tile b {
  font-size: 20px;
  font-weight: 800;
}

html.app-glass .main-panel .meetings-workspace .meeting-date-tile span {
  font-size: 12px;
}

/* A meeting running now: the large glowing card at the top. */
html.app-glass .main-panel .meetings-workspace .meeting-card.meeting-live-hero {
  /* Solid deep blue, not see-through: the card is tall and reaches the light part of the
   * page, where white text on clear glass was too faint to read. */
  background: linear-gradient(160deg, var(--as-primary-active, #12245c), var(--as-primary, #2341a0) 60%, #3b63e0) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 32px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 30px 60px -16px rgba(5, 15, 50, 0.7), 0 0 40px -6px rgba(67, 105, 211, 0.6) !important;
  color: #ffffff;
  padding: 22px !important;
  text-align: center;
}

html.app-glass .main-panel .meetings-workspace .meeting-live-hero .meeting-live-badge {
  align-items: center;
  align-self: center;
  background: rgba(26, 134, 65, 0.92);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-self: center;
  padding: 6px 14px;
  width: fit-content;
}

html.app-glass .main-panel .meetings-workspace .meeting-live-hero .meeting-live-badge span {
  background: #ffffff;
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

html.app-glass .main-panel .meetings-workspace .meeting-live-hero h2,
html.app-glass .main-panel .meetings-workspace .meeting-live-hero p,
html.app-glass .main-panel .meetings-workspace .meeting-live-hero dt,
html.app-glass .main-panel .meetings-workspace .meeting-live-hero dd,
html.app-glass .main-panel .meetings-workspace .meeting-live-hero .meeting-room-hint {
  color: #ffffff !important;
}

html.app-glass .main-panel .meetings-workspace .meeting-live-hero h2 {
  font-size: 22px;
  font-weight: 800;
}

html.app-glass .main-panel .meetings-workspace .meeting-live-hero .announcement-status-pill {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

html.app-glass .main-panel .meetings-workspace .meeting-live-hero .meeting-meta {
  justify-content: center;
}

html.app-glass .main-panel .meetings-workspace .meeting-live-hero .meeting-actions {
  justify-content: center;
}

/* The join button on the live card: white with a soft glow. */
html.app-glass .main-panel .meetings-workspace .meeting-live-hero .primary-button {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.5), 0 0 28px -4px rgba(200, 217, 254, 0.9) !important;
  color: var(--as-primary-active, #1b337b) !important;
  font-size: 17px;
  font-weight: 800;
  min-height: 52px;
  min-width: 60%;
}

html.app-glass .main-panel .meetings-workspace .meeting-live-hero .secondary-button {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
}

/* Main buttons on the white cards: saturated blue with a glow. */
html.app-glass .main-panel .meetings-workspace .meeting-card:not(.meeting-live-hero) .primary-button {
  background: linear-gradient(180deg, #3b63e0, var(--as-primary, #2341a0)) !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 28px -8px rgba(35, 65, 160, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  font-weight: 800;
}
