/* calendar.css — Google Calendar Replica for Orvendia Dashboard */
/* Google Blue: #1a73e8 | Text: #3c4043 | Secondary: #70757a | Border: #dadce0 | Hover: #f1f3f4 */

/* ── Reset / Wrapper ───────────────────────────────────────────────────────── */
.gcal-wrap {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; font-family: 'Google Sans', Roboto, Arial, sans-serif;
  color: #3c4043; overflow: hidden; position: relative;
  -webkit-font-smoothing: antialiased;
}
.gcal-wrap *, .gcal-wrap *::before, .gcal-wrap *::after { box-sizing: border-box; }

/* ── Top Bar ───────────────────────────────────────────────────────────────── */
.gcal-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 8px; height: 64px; flex-shrink: 0;
  border-bottom: 1px solid #dadce0; background: #fff; z-index: 20;
}
.gcal-topbar-left  { display: flex; align-items: center; gap: 4px; min-width: 220px; }
.gcal-topbar-center{ display: flex; align-items: center; gap: 4px; flex: 1; }
.gcal-topbar-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* Icon button (hamburger, nav arrows, settings) */
.gcal-icon-btn {
  width: 40px; height: 40px; border: none; background: none; cursor: pointer;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #3c4043; flex-shrink: 0; transition: background 0.15s;
}
.gcal-icon-btn:hover { background: #f1f3f4; }
.gcal-icon-btn svg { display: block; }

/* Logo */
.gcal-logo-wrap  { display: flex; align-items: center; gap: 4px; text-decoration: none; color: inherit; user-select: none; }
.gcal-logo-icon  { width: 40px; height: 40px; flex-shrink: 0; }
.gcal-logo-text  { font-size: 22px; font-weight: 400; color: #5f6368; letter-spacing: -0.5px; white-space: nowrap; }

/* Today button */
.gcal-today-btn {
  padding: 7px 16px; border: 1px solid #dadce0; border-radius: 4px;
  background: #fff; font-size: 14px; font-weight: 500; color: #3c4043;
  cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.gcal-today-btn:hover { background: #f1f3f4; border-color: #c5c8cb; }

/* Nav arrows */
.gcal-nav-arrows { display: flex; }

/* Title */
.gcal-title {
  font-size: 22px; font-weight: 400; color: #3c4043; margin: 0;
  white-space: nowrap; padding-left: 8px; flex-shrink: 0;
}

/* Search box */
.gcal-search-box {
  display: flex; align-items: center; gap: 8px;
  background: #f1f3f4; border-radius: 24px; padding: 8px 16px;
  transition: background 0.2s, box-shadow 0.2s; flex: 1; max-width: 480px; min-width: 140px;
}
.gcal-search-box:focus-within { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.gcal-search-input {
  border: none; background: none; outline: none; font-size: 16px;
  color: #3c4043; width: 100%; font-family: inherit;
}
.gcal-search-input::placeholder { color: #5f6368; font-size: 16px; }

/* View dropdown */
.gcal-view-dropdown  { position: relative; flex-shrink: 0; }
.gcal-view-btn {
  display: flex; align-items: center; gap: 4px; padding: 7px 12px;
  border: 1px solid #dadce0; border-radius: 4px; background: #fff;
  font-size: 14px; font-weight: 500; color: #3c4043; cursor: pointer;
  white-space: nowrap; transition: background 0.15s; font-family: inherit;
}
.gcal-view-btn:hover  { background: #f1f3f4; }
.gcal-view-menu {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: #fff; border-radius: 8px; min-width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2); z-index: 100;
  padding: 8px 0; border: 1px solid #dadce0;
}
.gcal-view-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; font-size: 14px; color: #3c4043; cursor: pointer;
  transition: background 0.1s;
}
.gcal-view-item:hover  { background: #f1f3f4; }
.gcal-view-item.active { color: #1a73e8; font-weight: 500; }
.gcal-view-key  { font-size: 12px; color: #9aa0a6; font-weight: 400; }
.gcal-view-sep  { height: 1px; background: #dadce0; margin: 4px 0; }

/* ── Body layout ───────────────────────────────────────────────────────────── */
.gcal-body { display: flex; flex: 1; overflow: hidden; }
.gcal-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.gcal-view-content { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.gcal-sidebar {
  width: 256px; flex-shrink: 0; display: flex; flex-direction: column;
  overflow-y: auto; background: #fff; padding: 8px 0; z-index: 10;
  transition: width 0.2s, opacity 0.2s;
}
.gcal-sidebar.hidden { width: 0; overflow: hidden; padding: 0; }

/* Create button */
.gcal-sidebar-create { padding: 8px 16px 16px; }
.gcal-create-btn {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: #fff; border: none; border-radius: 28px;
  box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  font-size: 14px; font-weight: 500; color: #3c4043; cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s; font-family: inherit; width: 100%;
}
.gcal-create-btn:hover {
  box-shadow: 0 1px 3px rgba(60,64,67,.4), 0 2px 8px 2px rgba(60,64,67,.2);
  background: #f8f9fa;
}
.gcal-create-btn svg { color: #1a73e8; flex-shrink: 0; }

/* ── Mini Calendar ─────────────────────────────────────────────────────────── */
.gcal-mini-cal { padding: 4px 12px 16px; }
.gcal-mini-hd  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 0 2px; }
.gcal-mini-title { font-size: 12px; font-weight: 500; color: #3c4043; }
.gcal-mini-nav {
  width: 28px; height: 28px; border: none; background: none; cursor: pointer;
  color: #70757a; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.gcal-mini-nav:hover { background: #f1f3f4; }
.gcal-mini-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 0; }
.gcal-mini-dow  {
  font-size: 10px; font-weight: 500; color: #70757a;
  text-align: center; padding: 4px 0; text-transform: uppercase;
}
.gcal-mini-day {
  font-size: 12px; text-align: center; cursor: pointer; border-radius: 50%;
  color: #3c4043; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  margin: 1px auto; position: relative; border: none; background: none;
  transition: background 0.1s; font-family: inherit; flex-direction: column;
}
.gcal-mini-day:hover                    { background: #f1f3f4; }
.gcal-mini-day.today                    { background: #1a73e8; color: #fff; font-weight: 600; }
.gcal-mini-day.today:hover              { background: #1765cc; }
.gcal-mini-day.selected                 { background: #e8f0fe; color: #1a73e8; font-weight: 600; }
.gcal-mini-day.selected-today           { background: #1a73e8; color: #fff; font-weight: 600; outline: 3px solid #e8f0fe; }
.gcal-mini-dot {
  width: 4px; height: 4px; background: #1a73e8; border-radius: 50%;
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
}
.gcal-mini-day.today .gcal-mini-dot     { background: #fff; }
.gcal-mini-day.has-ev::after {
  content: ''; display: block; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  opacity: 0.6;
}

/* ── Calendar List ─────────────────────────────────────────────────────────── */
.gcal-cal-lists { padding: 4px 0; }
.gcal-account-email {
  font-size: 11px; color: #70757a; padding: 2px 16px 10px;
  border-bottom: 1px solid #f1f3f4; margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gcal-cal-section { font-size: 11px; font-weight: 500; color: #70757a; padding: 8px 16px 4px; text-transform: uppercase; letter-spacing: 0.6px; }
.gcal-cal-item    { display: flex; align-items: center; }
.gcal-cal-label   { display: flex; align-items: center; gap: 10px; padding: 6px 16px; cursor: pointer; width: 100%; border-radius: 0; transition: background 0.1s; }
.gcal-cal-label:hover { background: #f1f3f4; }
.gcal-cal-checkbox { display: none; }
.gcal-cal-chk {
  width: 18px; height: 18px; border-radius: 3px; border: 2px solid; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.gcal-cal-name    { font-size: 13px; color: #3c4043; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* Connect prompt */
.gcal-connect-prompt { padding: 12px 16px; }
.gcal-connect-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px;
  border: 1px solid #dadce0; border-radius: 4px; background: #fff; font-size: 13px;
  color: #3c4043; cursor: pointer; font-family: inherit; transition: background 0.15s;
}
.gcal-connect-btn:hover { background: #f8f9fa; }

/* ── Empty / Loading States ────────────────────────────────────────────────── */
.gcal-empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 16px; padding: 60px 40px; text-align: center;
}
.gcal-empty-icon    { margin-bottom: 4px; }
.gcal-empty-title   { font-size: 22px; font-weight: 400; color: #3c4043; margin: 0; }
.gcal-empty-desc    { font-size: 14px; color: #70757a; max-width: 400px; line-height: 1.6; margin: 0; }
.gcal-google-signin-btn {
  display: flex; align-items: center; gap: 10px; padding: 12px 24px;
  border: 1px solid #dadce0; border-radius: 4px; background: #fff;
  font-size: 15px; font-weight: 500; color: #3c4043; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12); font-family: inherit;
  transition: background 0.15s, box-shadow 0.15s;
}
.gcal-google-signin-btn:hover { background: #f8f9fa; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.gcal-spinner {
  width: 36px; height: 36px; border: 3px solid #e8eaed; border-top-color: #1a73e8;
  border-radius: 50%; animation: gcal-spin 0.8s linear infinite;
}
@keyframes gcal-spin { to { transform: rotate(360deg); } }

/* ── MONTH VIEW ────────────────────────────────────────────────────────────── */
.gcal-month-wrap { display: flex; flex-direction: column; height: 100%; }
.gcal-month-hdr  {
  display: grid; grid-template-columns: repeat(7,1fr);
  border-bottom: 1px solid #dadce0; flex-shrink: 0;
}
.gcal-month-dow  {
  padding: 8px 0 6px; font-size: 11px; font-weight: 500; color: #70757a;
  text-align: center; text-transform: uppercase; letter-spacing: 0.5px;
}
.gcal-month-grid {
  display: grid; grid-template-columns: repeat(7,1fr);
  flex: 1; overflow-y: auto; border-left: 1px solid #dadce0;
}
.gcal-month-cell {
  border-right: 1px solid #dadce0; border-bottom: 1px solid #dadce0;
  padding: 2px 2px 4px; min-height: 104px; cursor: pointer;
  overflow: hidden; position: relative; background: #fff;
  transition: background 0.1s;
}
.gcal-month-cell:hover       { background: #f8f9fa; }
.gcal-month-cell.other-month { background: #fafafa; }
.gcal-month-cell.other-month:hover { background: #f5f5f5; }
.gcal-month-cell.is-today    { background: #fff; }
.gcal-month-day-row          { margin-bottom: 1px; padding: 2px 4px; }
.gcal-month-day-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 12px; color: #3c4043; font-weight: 400;
}
.gcal-month-day-num.today-num  { background: #1a73e8; color: #fff; font-weight: 600; }
.gcal-month-cell.other-month .gcal-month-day-num { color: #bdc1c6; }

/* Month events */
.gcal-month-ev {
  display: block; margin: 0 4px 1px; border-radius: 4px;
  font-size: 12px; font-weight: 400; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  padding: 1px 4px; line-height: 18px; transition: filter 0.1s;
}
.gcal-month-ev:hover           { filter: brightness(0.93); }
.gcal-month-ev-allday          { color: #fff; }
.gcal-month-ev-timed {
  display: flex; align-items: center; gap: 4px; background: transparent !important;
  color: #3c4043;
}
.gcal-month-ev-timed:hover     { background: #f1f3f4 !important; }
.gcal-month-dot                { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.gcal-month-ev-txt             { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.gcal-month-ev-time            { font-weight: 400; }
.gcal-month-more {
  font-size: 12px; color: #70757a; padding: 1px 4px; margin: 0 4px;
  cursor: pointer; border-radius: 4px; line-height: 18px;
}
.gcal-month-more:hover         { background: #f1f3f4; }

/* ── WEEK / DAY GRID ───────────────────────────────────────────────────────── */
.gcal-week-wrap { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.gcal-week-hdr  {
  flex-shrink: 0; border-bottom: 1px solid #dadce0; background: #fff; z-index: 5;
}
.gcal-week-hdr-row { display: flex; }

/* Timezone column */
.gcal-tz-col    { width: 56px; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 6px 8px 6px 0; }
.gcal-tz-lbl    { font-size: 10px; color: #70757a; }
.gcal-allday-lbl{ align-items: flex-start; font-size: 10px; color: #70757a; padding-top: 6px; }

/* Day header columns */
.gcal-week-daycol-hdr {
  flex: 1; text-align: center; padding: 4px 4px 6px; border-left: 1px solid #f1f3f4;
  cursor: pointer;
}
.gcal-week-daycol-hdr.is-today .gcal-week-dow { color: #1a73e8; }
.gcal-week-dow  { display: block; font-size: 11px; font-weight: 500; color: #70757a; text-transform: uppercase; letter-spacing: 0.5px; }
.gcal-week-dom  {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; font-size: 22px;
  font-weight: 300; color: #3c4043; cursor: pointer; transition: background 0.15s; margin: 2px 0;
}
.gcal-week-dom:hover            { background: #f1f3f4; }
.gcal-week-dom.is-today-dom     { background: #1a73e8; color: #fff; font-weight: 500; font-size: 20px; }

/* All-day row */
.gcal-allday-row  { display: flex; border-bottom: 1px solid #dadce0; min-height: 26px; }
.gcal-allday-cell { flex: 1; border-left: 1px solid #f1f3f4; padding: 2px 2px; min-height: 24px; }
.gcal-allday-ev   {
  font-size: 12px; padding: 1px 6px; border-radius: 4px; margin: 1px 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; line-height: 18px; transition: filter 0.1s;
}
.gcal-allday-ev:hover { filter: brightness(0.92); }

/* Scrollable time area */
.gcal-week-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; }
.gcal-week-grid   { display: flex; min-height: 1440px; position: relative; }

/* Time column */
.gcal-time-col  { width: 56px; flex-shrink: 0; }
.gcal-time-row  { height: 60px; display: flex; align-items: flex-start; justify-content: flex-end; padding-right: 8px; }
.gcal-time-lbl  { font-size: 10px; color: #70757a; line-height: 1; margin-top: -6px; white-space: nowrap; }

/* Day columns in time grid */
.gcal-week-daycol {
  flex: 1; border-left: 1px solid #dadce0; position: relative;
  min-height: 1440px; cursor: pointer;
}
.gcal-week-daycol.is-today { background: rgba(26,115,232,0.02); }

/* Hour slots */
.gcal-hr-slot    { height: 60px; border-bottom: 1px solid #dadce0; position: relative; }
.gcal-half-slot  { position: absolute; bottom: 0; left: 0; right: 0; top: 50%; border-top: 1px solid #f1f3f4; }
.gcal-week-daycol:hover > .gcal-hr-slot { /* handled by direct hover */ }
.gcal-hr-slot:hover { background: rgba(26,115,232,0.04); }

/* Now line */
.gcal-now-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: #ea4335; z-index: 4; pointer-events: none;
}
.gcal-now-dot {
  width: 12px; height: 12px; background: #ea4335; border-radius: 50%;
  position: absolute; left: -5px; top: -5px;
}

/* Timed events */
.gcal-ev {
  position: absolute; border-radius: 4px; padding: 2px 6px;
  cursor: pointer; overflow: hidden; border-left: 3px solid transparent;
  box-sizing: border-box; z-index: 2; min-height: 18px;
  transition: filter 0.1s, box-shadow 0.1s;
}
.gcal-ev:hover { filter: brightness(0.92); box-shadow: 0 2px 8px rgba(0,0,0,0.2); z-index: 3; }
.gcal-ev-title { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.gcal-ev-time  { font-size: 11px; opacity: 0.85; margin-top: 1px; line-height: 1.2; }

/* ── AGENDA VIEW ───────────────────────────────────────────────────────────── */
.gcal-agenda-wrap        { padding: 0 16px; overflow-y: auto; height: 100%; }
.gcal-agenda-search-hdr  { padding: 12px 0; font-size: 13px; color: #70757a; border-bottom: 1px solid #dadce0; margin-bottom: 8px; }
.gcal-agenda-day {
  display: flex; border-bottom: 1px solid #f1f3f4; padding: 8px 0;
  gap: 0;
}
.gcal-agenda-day.is-today .gcal-agenda-dom { background: #1a73e8; color: #fff; border-radius: 50%; }
.gcal-agenda-date  { width: 72px; flex-shrink: 0; text-align: center; padding: 4px 8px 0 0; }
.gcal-agenda-dow   { font-size: 11px; text-transform: uppercase; color: #70757a; font-weight: 500; }
.gcal-agenda-dom   { font-size: 26px; font-weight: 300; color: #3c4043; line-height: 1.1; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin: 2px auto; }
.gcal-agenda-dom.is-today-dom { background: #1a73e8; color: #fff; border-radius: 50%; font-weight: 500; font-size: 20px; }
.gcal-agenda-mo    { font-size: 11px; color: #70757a; text-transform: uppercase; }
.gcal-agenda-evs   { flex: 1; }
.gcal-agenda-ev {
  display: flex; align-items: flex-start; gap: 10px; padding: 6px 8px;
  cursor: pointer; border-radius: 8px; transition: background 0.1s;
}
.gcal-agenda-ev:hover         { background: #f8f9fa; }
.gcal-agenda-ev-bar           { width: 4px; min-height: 36px; border-radius: 2px; flex-shrink: 0; margin-top: 2px; }
.gcal-agenda-ev-info          { flex: 1; min-width: 0; }
.gcal-agenda-ev-title         { font-size: 14px; font-weight: 500; color: #3c4043; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcal-agenda-ev-meta          { font-size: 12px; color: #70757a; }
.gcal-agenda-loc              { color: #9aa0a6; }
.gcal-meet-chip {
  padding: 4px 12px; background: #1a73e8; color: #fff; border-radius: 14px;
  font-size: 12px; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  font-weight: 500; transition: background 0.15s; align-self: center;
}
.gcal-meet-chip:hover { background: #1765cc; }

/* ── YEAR VIEW ─────────────────────────────────────────────────────────────── */
.gcal-year-wrap { overflow-y: auto; height: 100%; padding: 16px 24px; }
.gcal-year-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 28px;
  max-width: 1000px;
}
.gcal-year-mo-title {
  font-size: 13px; font-weight: 500; color: #1a73e8; margin-bottom: 8px;
  cursor: pointer; padding: 4px 0; display: inline-block;
}
.gcal-year-mo-title:hover { text-decoration: underline; }

/* ── EVENT POPUP ───────────────────────────────────────────────────────────── */
.gcal-ev-popup {
  position: fixed; z-index: 9999; background: #fff; border-radius: 8px;
  width: 320px; overflow: hidden;
  box-shadow: 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12), 0 11px 15px -7px rgba(0,0,0,.2);
}
.gcal-popup-bar {
  display: flex; align-items: flex-start; padding: 8px 8px 24px; min-height: 44px;
}
.gcal-popup-acts { display: flex; gap: 2px; margin-left: auto; }
.gcal-popup-act {
  width: 32px; height: 32px; border: none; background: rgba(255,255,255,0.18);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.15s;
}
.gcal-popup-act:hover { background: rgba(255,255,255,0.32); }
.gcal-popup-body      { padding: 12px 16px 18px; }
.gcal-popup-title     { font-size: 16px; font-weight: 500; color: #3c4043; margin-bottom: 12px; line-height: 1.4; }
.gcal-popup-row       { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: #3c4043; margin-bottom: 8px; }
.gcal-popup-ic        { width: 18px; height: 18px; flex-shrink: 0; color: #70757a; margin-top: 1px; }
.gcal-popup-cal-dot   { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.gcal-popup-desc      { font-size: 12px; color: #70757a; max-height: 80px; overflow-y: auto; white-space: pre-wrap; }
.gcal-popup-meet {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 14px;
  background: #e8f0fe; color: #1a73e8; border-radius: 4px; font-size: 13px;
  text-decoration: none; font-weight: 500; transition: background 0.15s;
}
.gcal-popup-meet:hover      { background: #d2e3fc; }
.gcal-popup-gcal-link       { display: block; margin-top: 8px; font-size: 12px; color: #1a73e8; text-decoration: none; }
.gcal-popup-gcal-link:hover { text-decoration: underline; }

/* ── CREATE / EDIT MODAL ───────────────────────────────────────────────────── */
.gcal-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.gcal-modal {
  background: #fff; border-radius: 8px; width: 540px; max-width: 96vw; max-height: 92vh;
  overflow-y: auto; box-shadow: 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12), 0 11px 15px -7px rgba(0,0,0,.2);
}
.gcal-modal-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid #f1f3f4;
}
.gcal-modal-top-title { font-size: 16px; font-weight: 500; color: #3c4043; }
.gcal-modal-cls       { /* uses gcal-icon-btn */ }
.gcal-modal-body      { padding: 8px 24px 12px; }
.gcal-modal-title-inp {
  width: 100%; border: none; border-bottom: 2px solid #1a73e8; outline: none;
  font-size: 22px; font-weight: 400; color: #3c4043; padding: 8px 0 6px; margin-bottom: 16px;
  background: transparent; font-family: inherit;
}
.gcal-modal-title-inp::placeholder { color: #9aa0a6; }
.gcal-modal-row {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px;
}
.gcal-modal-row-ic { width: 20px; height: 20px; flex-shrink: 0; color: #70757a; margin-top: 6px; }
.gcal-modal-row-content { flex: 1; min-width: 0; }
.gcal-modal-dt-row  { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.gcal-modal-chip {
  padding: 6px 10px; border: 1px solid #dadce0; border-radius: 4px;
  font-size: 14px; color: #3c4043; background: #fff; cursor: pointer;
  outline: none; font-family: inherit; transition: border-color 0.15s;
}
.gcal-modal-chip:focus { border-color: #1a73e8; }
.gcal-modal-sep  { color: #70757a; }
.gcal-modal-allday {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #3c4043; cursor: pointer; margin-top: 2px;
}
.gcal-modal-allday input { accent-color: #1a73e8; cursor: pointer; }
.gcal-modal-txt-inp {
  border: none; border-bottom: 1px solid #e0e0e0; padding: 6px 0; font-size: 14px;
  color: #3c4043; background: transparent; outline: none; width: 100%; font-family: inherit;
  transition: border-color 0.15s;
}
.gcal-modal-txt-inp:focus          { border-bottom-color: #1a73e8; }
textarea.gcal-modal-txt-inp        { resize: vertical; min-height: 56px; }
select.gcal-modal-txt-inp          { cursor: pointer; }
.gcal-modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px 16px; border-top: 1px solid #f1f3f4;
}
.gcal-modal-btn-primary {
  padding: 9px 20px; background: #1a73e8; color: #fff; border: none; border-radius: 4px;
  font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
  transition: background 0.15s, box-shadow 0.15s;
}
.gcal-modal-btn-primary:hover { background: #1765cc; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.gcal-modal-btn-text {
  padding: 9px 12px; background: transparent; color: #3c4043; border: none; border-radius: 4px;
  font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; transition: background 0.15s;
}
.gcal-modal-btn-text:hover       { background: #f1f3f4; }
.gcal-modal-btn-danger           { color: #d93025; }
.gcal-modal-btn-danger:hover     { background: #fce8e6; }

/* ── FAB (mobile) ──────────────────────────────────────────────────────────── */
.gcal-fab {
  display: none; position: fixed; right: 24px; bottom: 24px; z-index: 100;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1a73e8; color: #fff; border: none; cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.15);
  transition: box-shadow 0.2s, background 0.2s;
}
.gcal-fab:hover { background: #1765cc; box-shadow: 0 6px 12px rgba(0,0,0,.3); }

/* ── Old meeting classes kept for compat ───────────────────────────────────── */
.meetings-page   { padding: 40px 60px 60px; max-width: 800px; margin: 0 auto; }
.meetings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.meetings-empty  { display: flex; flex-direction: column; align-items: center; padding: 60px 0; color: var(--text-secondary,#70757a); gap: 12px; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .gcal-topbar-left  { min-width: 0; }
  .gcal-logo-text    { font-size: 18px; }
  .gcal-title        { font-size: 18px; }
  .gcal-search-box   { max-width: 260px; }
  .gcal-year-grid    { grid-template-columns: repeat(3,1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .gcal-topbar        { height: 56px; padding: 0 4px; }
  .gcal-logo-text     { display: none; }
  .gcal-topbar-center { flex: 1; min-width: 0; }
  .gcal-title         { font-size: 16px; padding-left: 4px; overflow: hidden; text-overflow: ellipsis; }
  .gcal-search-box    { display: none; }
  .gcal-sidebar       { display: none; }
  .gcal-sidebar.mobile-open { display: flex; position: fixed; top: 56px; left: 0; bottom: 0; z-index: 50; box-shadow: 4px 0 16px rgba(0,0,0,0.15); }
  .gcal-fab           { display: flex; }
  .gcal-year-grid     { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .gcal-year-wrap     { padding: 12px 16px; }
  .gcal-month-cell    { min-height: 60px; }
  .gcal-agenda-wrap   { padding: 0 8px; }
  .gcal-agenda-date   { width: 56px; }
  .gcal-agenda-dom    { font-size: 20px; }
  .gcal-week-hdr-row .gcal-week-daycol-hdr { padding: 2px 1px 4px; }
  .gcal-week-dom      { width: 28px; height: 28px; font-size: 16px; }
  .gcal-tz-col        { width: 40px; }
  .gcal-time-col      { width: 40px; }
  .gcal-time-lbl      { font-size: 9px; }
}

@media (max-width: 480px) {
  .gcal-today-btn  { padding: 5px 10px; font-size: 13px; }
  .gcal-view-btn   { padding: 5px 8px; font-size: 13px; }
  .gcal-modal      { border-radius: 8px 8px 0 0; position: fixed; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; max-height: 92vh; }
  .gcal-modal-overlay { align-items: flex-end; }
  .gcal-month-cell { min-height: 48px; padding: 1px; }
  .gcal-month-ev   { font-size: 11px; }
}
