/* ==========================================================================
   SUNERGIA CALENDAR THEME & DESIGN SYSTEM (PLANE / CAD CODE MINIMALIST)
   Ultra-sleek, compact, high-density dashboard aesthetic
   ========================================================================== */

:root, [data-theme="dark"] {
  --bg-main: #0b0f17;
  --bg-card: #0f172a;
  --bg-hover: #1e293b;
  --bg-input: #0e1526;
  --border-color: #1e293b;
  --border-focus: #f59e0b;

  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-heading: #f8fafc;
  --text-dark: #0f172a;

  --amber-primary: #f59e0b;
  --amber-light: #fbbf24;
  --amber-hover: #d97706;
  --amber-glow: rgba(245, 158, 11, 0.18);

  --modal-backdrop: rgba(0, 0, 0, 0.7);
  --modal-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);

  --success: #10b981;
  --danger: #ef4444;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --time-col-width: 56px;
}

[data-theme="light"], .light-theme {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --border-color: #e2e8f0;
  --border-focus: #f59e0b;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-heading: #0f172a;
  --text-dark: #0f172a;

  --amber-primary: #f59e0b;
  --amber-light: #d97706;
  --amber-hover: #b45309;
  --amber-glow: rgba(245, 158, 11, 0.12);

  --modal-backdrop: rgba(15, 23, 42, 0.35);
  --modal-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.15s ease, color 0.15s ease;
  overflow: hidden;
}

/* ==========================================================================
   HEADER & NAVBAR (COMPACT PLANE / CAD CODE STYLE)
   ========================================================================== */

.sunergia-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  height: 44px;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.header-vdivider {
  width: 1px;
  height: 16px;
  background-color: var(--border-color);
  margin: 0 0.2rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 24px;
  height: 24px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-primary);
  flex-shrink: 0;
}

.brand-icon .icon-svg {
  width: 13px;
  height: 13px;
  stroke: var(--amber-primary);
}

.brand-title {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}

/* Segmented Navigation (Hoje, Prev, Next) */
.nav-segmented {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.seg-btn:hover {
  background-color: var(--bg-hover);
  color: var(--amber-primary);
}

.nav-arrows {
  display: inline-flex;
  align-items: center;
  border-left: 1px solid var(--border-color);
  padding-left: 2px;
}

.seg-btn-icon {
  border: none;
  background: transparent;
  color: var(--text-muted);
  width: 22px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn-icon:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.seg-btn-icon .icon-svg {
  width: 12px;
  height: 12px;
}

.current-date-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
  min-width: 135px;
  text-align: center;
  letter-spacing: -0.01em;
}

/* View Selector Segmented Pill (Mês, Semana, Dia) */
.view-selector-segmented {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.seg-view-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.seg-view-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-hover);
}

.seg-view-btn.btn-active {
  background-color: var(--bg-card);
  color: var(--amber-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Tool Buttons (Plane style) */
.btn-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 28px;
  padding: 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-tool:hover {
  background-color: var(--bg-hover);
  border-color: var(--amber-primary);
  color: var(--text-heading);
}

.btn-icon-only {
  width: 28px;
  height: 28px;
  padding: 0;
}

.btn-primary-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 28px;
  padding: 0 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--amber-primary) 0%, var(--amber-hover) 100%);
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px var(--amber-glow);
  white-space: nowrap;
}

.btn-primary-compact:hover {
  filter: brightness(1.08);
  box-shadow: 0 2px 8px var(--amber-glow);
}

.btn-primary-compact .icon-svg {
  stroke: #0f172a;
}

.icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ==========================================================================
   MAIN CALENDAR CONTAINER & FULL-HEIGHT TIMEGRID
   ========================================================================== */

.calendar-wrapper {
  flex: 1;
  padding: 0.35rem 0.65rem 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100vh - 44px);
  box-sizing: border-box;
}

#calendar {
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   TOAST UI CALENDAR V2 OVERRIDES (ZERO SCROLLBAR IN WEEK/DAY VIEW)
   ========================================================================== */

.toastui-calendar-root {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  font-family: var(--font-family) !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
}

.toastui-calendar-layout {
  position: relative !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
}

.toastui-calendar-panel,
.toastui-calendar-daygrid,
.toastui-calendar-month-daygrid {
  border-color: var(--border-color) !important;
  background-color: var(--bg-card) !important;
}

/* Week & Day Timegrid: Full 24h scrollable with sleek minimalist scrollbar */
.toastui-calendar-panel.toastui-calendar-time {
  position: absolute !important;
  top: 36px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: block !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.toastui-calendar-timegrid {
  display: block !important;
  position: relative !important;
  height: 1200px !important;
  min-height: 1200px !important;
  border-color: var(--border-color) !important;
  background-color: var(--bg-card) !important;
  box-sizing: border-box !important;
}

.toastui-calendar-timegrid-scroll-area {
  position: relative !important;
  display: block !important;
  height: 100% !important;
  overflow: visible !important;
}

.toastui-calendar-timegrid-time-column {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: var(--time-col-width) !important;
  height: 100% !important;
  border-right: 1px solid var(--border-color) !important;
  background-color: var(--bg-main) !important;
  display: flex !important;
  flex-direction: row !important;
  box-sizing: border-box !important;
}

.toastui-calendar-timegrid-hour-rows {
  flex: 1 1 0px !important;
  height: 100% !important;
  position: relative !important;
  border-right: 1px solid var(--border-color) !important;
  box-sizing: border-box !important;
  background-color: inherit !important;
}

.toastui-calendar-timegrid-hour-rows:last-child {
  border-right: none !important;
}

.toastui-calendar-timegrid-time {
  position: absolute !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
  padding-right: 5px !important;
  width: 100% !important;
  text-align: right !important;
  box-sizing: border-box !important;
  transform: translateY(-50%) !important;
}

.toastui-calendar-timegrid-time-first {
  transform: translateY(2px) !important;
}

.toastui-calendar-columns {
  position: absolute !important;
  top: 0 !important;
  left: var(--time-col-width) !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
}

.toastui-calendar-day-name-container {
  margin-left: var(--time-col-width) !important;
}

/* Header Corner Timezone Bar (Plane / CAD Code Minimalist) */
.sunergia-tz-corner-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--time-col-width);
  height: 36px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border-color);
  background-color: var(--bg-main);
  z-index: 5;
  box-sizing: border-box;
}

.sunergia-tz-badge-col {
  flex: 1 1 0px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-color);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.sunergia-tz-badge-col:hover {
  background-color: var(--bg-hover);
  color: var(--amber-primary);
}

.sunergia-tz-badge-col:last-child {
  border-right: none;
  color: var(--amber-primary);
}

/* Oculta slot flutuante padrão do TOAST UI em favor do corner header sincronizado */
.toastui-calendar-timezone-labels-slot {
  display: none !important;
}

.toastui-calendar-column {
  height: 100% !important;
  border-right-color: var(--border-color) !important;
}

.toastui-calendar-gridline-half {
  border-bottom-color: var(--border-color) !important;
}

/* Barra de Rolagem Minimalista Premium (Plane / CAD Code Style) */
.toastui-calendar-panel.toastui-calendar-time::-webkit-scrollbar {
  width: 6px;
}

.toastui-calendar-panel.toastui-calendar-time::-webkit-scrollbar-track {
  background: transparent;
}

.toastui-calendar-panel.toastui-calendar-time::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 9999px;
  transition: background 0.15s ease;
}

.toastui-calendar-panel.toastui-calendar-time::-webkit-scrollbar-thumb:hover {
  background: var(--amber-primary);
}

.toastui-calendar-panel.toastui-calendar-week-view-day-names,
.toastui-calendar-panel.toastui-calendar-day-view-day-names {
  flex: 0 0 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-sizing: border-box !important;
  overflow-y: hidden !important;
}

.toastui-calendar-panel.toastui-calendar-month-daygrid {
  flex: 1 !important;
  min-height: 0 !important;
  height: calc(100% - 36px) !important;
  border-color: var(--border-color) !important;
}

.toastui-calendar-month-daygrid {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  height: calc(100% - 36px) !important;
  min-height: 0 !important;
}

.toastui-calendar-month-week-item {
  flex: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.toastui-calendar-weekday {
  flex: 1 !important;
  height: 100% !important;
  min-height: 0 !important;
  position: relative !important;
}

.toastui-calendar-weekday-grid {
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

.toastui-calendar-month-daygrid-cell {
  border-color: var(--border-color) !important;
}


.toastui-calendar-daygrid-cell,
.toastui-calendar-month-daygrid-cell {
  border-color: var(--border-color) !important;
}

.toastui-calendar-daygrid-cell:hover,
.toastui-calendar-month-daygrid-cell:hover {
  background-color: rgba(245, 158, 11, 0.04) !important;
}

.toastui-calendar-weekday-grid-date {
  color: var(--text-muted) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
}

.toastui-calendar-weekday-grid-date-today {
  color: var(--amber-primary) !important;
  font-weight: 700 !important;
}

.toastui-calendar-event {
  border-radius: 5px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.event-time-badge {
  font-weight: 700;
  opacity: 0.9;
  margin-right: 2px;
}

.event-title-text {
  font-weight: 500;
}


/* ==========================================================================
   MODAL DE EVENTOS & CONVITES
   ========================================================================== */

.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--modal-backdrop);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--modal-shadow);
  position: relative;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-heading);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-body strong {
  color: var(--text-main);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--amber-glow);
  color: var(--amber-light);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   BOOKING PAGE (book.html)
   ========================================================================== */

.booking-container {
  max-width: 920px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.booking-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--modal-shadow);
  overflow: hidden;
}

.booking-header {
  background: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

@media (max-width: 768px) {
  .booking-grid {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

.step-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber-primary);
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Date input */
.custom-date-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.custom-date-input:focus {
  border-color: var(--amber-primary);
  box-shadow: 0 0 0 2px var(--amber-glow);
}

/* Slots Grid */
.slots-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.6rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.slot-btn {
  padding: 0.6rem 0.4rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.slot-btn:hover {
  border-color: var(--amber-primary);
  background-color: var(--bg-hover);
}

.slot-btn.selected {
  background-color: var(--amber-primary);
  color: #0f172a;
  border-color: var(--amber-primary);
  box-shadow: 0 0 10px var(--amber-glow);
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input {
  padding: 0.65rem 0.9rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.form-input:focus {
  border-color: var(--amber-primary);
  box-shadow: 0 0 0 2px var(--amber-glow);
}

textarea.form-input {
  resize: vertical;
  min-height: 70px;
}

/* Confirmation / Success Screen */
.success-card {
  display: none;
  padding: 3rem 2rem;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.success-card.active {
  display: flex;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ==========================================================================
   MULTI-PARTICIPANT CHIPS & MEET ROOM STYLES
   ========================================================================== */

.team-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  color: var(--text-main);
}

.team-chip:hover {
  border-color: var(--amber-primary);
}

.team-chip input[type="checkbox"] {
  accent-color: var(--amber-primary);
}

.team-chip.selected {
  background: var(--amber-glow);
  border-color: var(--amber-primary);
  color: var(--amber-light);
  font-weight: 600;
}

.meet-room-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, var(--bg-hover) 100%);
  border: 1px solid var(--amber-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin: 1rem 0;
  box-shadow: 0 4px 20px var(--amber-glow);
}

.room-code-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--amber-primary);
  background: var(--bg-input);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
}

.copy-pill {
  background: var(--bg-input);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--amber-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  word-break: break-all;
  margin-top: 0.5rem;
}

/* ==========================================================================
   RECURRENCE SELECTOR & PREVIEW
   ========================================================================== */

.recurrence-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.btn-chip {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-chip:hover {
  border-color: var(--amber-primary);
  color: var(--amber-light);
  background-color: var(--amber-glow);
}

.btn-chip.active {
  background-color: var(--amber-glow);
  border-color: var(--amber-primary);
  color: var(--amber-light);
  font-weight: 600;
}

.rec-option {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.55rem 0.25rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.rec-option:hover {
  border-color: var(--amber-primary);
  color: var(--text-main);
}

.rec-option.active {
  background-color: var(--amber-glow);
  border-color: var(--amber-primary);
  color: var(--amber-light);
  box-shadow: 0 0 0 1px var(--amber-primary);
}

.rec-schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.6rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.78rem;
}

.rec-badge-avail {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.rec-badge-conflict {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* ==========================================================================
   ENRICHED EVENT CARD, MINIMALIST COPY & CRM / WHATSAPP STYLES
   ========================================================================== */

.btn-icon-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-icon-copy:hover {
  color: var(--amber-primary);
  background-color: rgba(245, 158, 11, 0.12);
  transform: scale(1.05);
}

.btn-icon-copy svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-icon-copy.copied {
  color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.15) !important;
}

.btn-wpp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-wpp:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.btn-wpp svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.crm-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.crm-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.crm-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meet-direct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  margin-top: 0.25rem;
  gap: 0.5rem;
}

.meet-url-link {
  color: var(--amber-light);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meet-url-link:hover {
  text-decoration: underline;
  color: var(--amber-primary);
}

/* ==========================================================================
   MULTI-CALENDAR LAYERS BAR & CHIPS
   ========================================================================== */
.calendar-layers-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.layer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  height: 24px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  line-height: 1;
}

.layer-chip:hover {
  background-color: var(--bg-hover);
  border-color: var(--amber-primary);
}

.layer-chip.layer-inactive {
  opacity: 0.4;
  filter: grayscale(0.8);
}

.layer-color-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.layer-chip input[type="checkbox"] {
  cursor: pointer;
  margin: 0;
  width: 11px;
  height: 11px;
  accent-color: var(--amber-primary);
}

/* ==========================================================================
   TIMEZONE MODAL & SELECTOR (PLANE / CAD CODE MINIMALIST)
   ========================================================================== */
.tz-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.tz-checklist::-webkit-scrollbar {
  width: 5px;
}

.tz-checklist::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 9999px;
}

.tz-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  user-select: none;
  cursor: pointer;
}

.tz-option-item:hover {
  background-color: var(--bg-hover);
  border-color: var(--amber-primary);
}

.tz-option-item.tz-selected {
  border-color: var(--amber-primary);
  background-color: rgba(245, 158, 11, 0.05);
}

.tz-locked-item {
  background-color: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.25);
  cursor: default;
}

.tz-locked-item:hover {
  background-color: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.25);
}

.tz-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  padding-right: 0.75rem;
}

.tz-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tz-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.tz-item-badge {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: monospace;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  background-color: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  margin-right: 0.6rem;
  flex-shrink: 0;
}

.tz-item-right {
  display: flex;
  align-items: center;
}

.tz-checkbox {
  accent-color: var(--amber-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ==========================================================================
   CALENDAR MANAGER MODAL (PLANE / CAD CODE MINIMALIST)
   ========================================================================== */
.calendar-manage-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.calendar-manage-list::-webkit-scrollbar {
  width: 5px;
}

.calendar-manage-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 9999px;
}

.calendar-manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  gap: 0.65rem;
}

.calendar-manage-item:hover {
  background-color: var(--bg-hover);
  border-color: rgba(245, 158, 11, 0.4);
}

.calendar-manage-item.cal-locked {
  background-color: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.25);
}

.cal-item-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.cal-color-pill {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  overflow: hidden;
}

.cal-item-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
}

.cal-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cal-action-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-action-btn:hover {
  color: var(--text-heading);
  background-color: var(--bg-hover);
  border-color: var(--amber-primary);
}

.cal-action-btn.cal-action-delete:hover {
  color: #fca5a5;
  background-color: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
}

/* Provider preset segmented tabs */
.provider-preset-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.provider-preset-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.25rem;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.provider-preset-tab:hover {
  color: var(--text-main);
  background-color: var(--bg-hover);
}

.provider-preset-tab.active {
  background-color: var(--bg-card);
  color: var(--text-heading);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.quick-color-swatches {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quick-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.quick-color-swatch:hover {
  transform: scale(1.15);
}

.quick-color-swatch.active {
  border-color: var(--text-heading);
  transform: scale(1.15);
}

.btn-add-layer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px dashed var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add-layer:hover {
  border-color: var(--amber-primary);
  color: var(--amber-primary);
  background-color: var(--bg-hover);
}

/* ==========================================================================
   STANDARD BUTTON COMPONENTS (PLANE / CAD CODE MINIMALIST)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1.2;
}

.btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-heading);
  border-color: var(--text-muted);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--amber-primary);
  border-color: var(--amber-primary);
  color: #0f172a !important;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--amber-hover);
  border-color: var(--amber-hover);
  color: #000000 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  color: #fca5a5;
  font-weight: 600;
}

.btn-danger:hover {
  background-color: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
