/* ========================================
   Relesys StatusPage — Custom CSS
   Aligned with Portal design system
   ======================================== */

/* ----- Font Loading ----- */
@font-face {
  font-family: 'TT Commons Classic';
  src: url('https://app.relesysapp.net/Content/Fonts/TT-Commons-Classic/TT-Commons-Classic-Regular.woff2') format('woff2'),
       url('https://app.relesysapp.net/Content/Fonts/TT-Commons-Classic/TT-Commons-Classic-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Commons Classic';
  src: url('https://app.relesysapp.net/Content/Fonts/TT-Commons-Classic/TT-Commons-Classic-DemiBold.woff2') format('woff2'),
       url('https://app.relesysapp.net/Content/Fonts/TT-Commons-Classic/TT-Commons-Classic-DemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ----- Base Typography & Background ----- */
body {
  font-family: 'TT Commons Classic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  background-color: #F4EFEB !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'TT Commons Classic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
}

/* ----- Links ----- */
a {
  color: #9353E4;
  font-weight: 600;
  text-decoration: none;
}
a:hover {
  color: #7235CC;
  text-decoration: underline;
}

/* ----- Subscribe & All Buttons ----- */
.show-updates-dropdown,
.flat-button,
.btn-green {
  background-color: #9353E4 !important;
  border-color: #9353E4 !important;
  color: #FFFFFF !important;
  font-weight: 600;
  border-radius: 24px !important;
  padding: 10px 24px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
  font-size: 13px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}
.show-updates-dropdown:hover,
.show-updates-dropdown:focus,
.flat-button:hover,
.flat-button:focus,
.btn-green:hover,
.btn-green:focus {
  background-color: #7235CC !important;
  border-color: #7235CC !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* Hide the short subscribe text */
.show-updates-dropdown .subscribe-text-short {
  display: none !important;
}

/* ----- Section Spacing ----- */
.unresolved-incidents {
  margin-bottom: 30px !important;
}
.text-section {
  margin-bottom: 24px !important;
}
.components-section {
  margin-bottom: 40px !important;
  border-radius: 12px !important;
}

/* ----- Component Container ----- */
.component-container.border-color {
  border: none !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
}

/* ----- Component Cards ----- */
.component-inner-container {
  background: #FFFFFF !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  box-shadow: none !important;
}

/* ----- Component Names & Status ----- */
.component-inner-container .name {
  font-weight: 500;
  font-size: 1rem;
}
.component-status {
  font-weight: 600;
  font-size: 0.8125rem;
}

/* ----- Component Group Headers ----- */
.component-group-name {
  font-weight: 600;
  font-size: 1.1rem;
}

/* ----- Uptime Bars ----- */
.uptime-day {
  border-radius: 2px;
}

/* ----- Incident Banner ----- */
.unresolved-incident {
  border-radius: 12px !important;
  overflow: hidden;
}
.unresolved-incident .incident-title {
  font-weight: 600;
}
.unresolved-incident .updates {
  background: #FFFFFF !important;
  border-radius: 0 0 12px 12px !important;
}

/* ----- Incident Subscribe Link ----- */
.unresolved-incident .subscribe {
  background: rgba(255, 255, 255, 0.2) !important;
  padding: 6px 16px !important;
  border-radius: 24px !important;
  font-weight: 600;
  font-size: 13px !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
.unresolved-incident .subscribe:hover,
.unresolved-incident .subscribe:focus {
  background: rgba(255, 255, 255, 0.35) !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

/* ----- Past Incidents Section ----- */
.incidents-list {
  margin-top: 30px !important;
}

.status-day {
  margin-top: 0 !important;
  padding: 14px 0 !important;
}

/* Date headers */
.status-day .date {
  font-size: 18px !important;
  font-weight: 600;
  border-bottom: 1px solid #D1D1D1 !important;
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
}

/* "No incidents reported" */
.status-day .color-secondary {
  font-size: 15px !important;
  color: #999999 !important;
}

/* Incident links */
.incident-title a {
  color: #9353E4;
  font-weight: 600;
}

.incident-title a.actual-title {
    margin-top: 6px;
    margin-bottom: 6px;
    line-height: 1.5rem;
}

/* ----- Page Status Banner ----- */
.page-status {
  border-radius: 12px !important;
}

/* ----- Status Legend ----- */
.component-statuses-legend {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ----- Global border-color override -----
   StatusPage settings may use a lighter border for emails.
   This keeps borders visible on the web pages. */
.border-color {
  border-color: #D1D1D1 !important;
}

/* ========================================
   History & Uptime Subpages
   ======================================== */

/* ----- Tabs (Incidents / Uptime) ----- */
.history-nav.border-color {
  border-bottom: 2px solid #D1D1D1 !important;
}
.history-nav .button {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 10px 18px !important;
  color: #B0B0B0 !important;
  font-weight: 500;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px;
}
.history-nav .button.current {
  color: #121212 !important;
  font-weight: 600;
  border-bottom: 2px solid #9353E4 !important;
  background: transparent !important;
}
.history-nav .button:hover {
  color: #9353E4 !important;
  text-decoration: none !important;
}

/* ----- Component Dropdown (Uptime page) ----- */
.select-input__control {
  background: #FFFFFF !important;
  border: 1px solid #D1D1D1 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  padding: 2px 4px !important;
  min-height: 40px !important;
}
.select-input__control:hover {
  border-color: #9353E4 !important;
}
.select-input__indicator {
  color: #999999 !important;
}
.select-input__indicator:hover {
  color: #9353E4 !important;
}
.select-input__menu {
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #EBEBEB !important;
}
.select-input__option {
  padding: 10px 14px !important;
}
.select-input__option--is-selected {
  background-color: #9353E4 !important;
}
.select-input__option--is-focused {
  background-color: #F4EFEB !important;
}

/* ----- Pagination ----- */
.pagination {
  display: flex !important;
  align-items: center;
  gap: 12px;
}
.previous-page,
.next-page {
  background: #FFFFFF !important;
  border: 1.5px solid #D1D1D1 !important;
  border-radius: 12px !important;
  width: 40px !important;
  height: 40px !important;
  text-align: center !important;
  line-height: 38px !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  text-decoration: none !important;
}
.previous-page:hover,
.next-page:hover {
  border-color: #9353E4 !important;
  background: rgba(147, 83, 228, 0.06) !important;
  text-decoration: none !important;
}
.previous-page:active,
.next-page:active {
  border-color: #7235CC !important;
  background: rgba(147, 83, 228, 0.12) !important;
  text-decoration: none !important;
}
.previous-page:focus,
.next-page:focus {
  border-color: #9353E4 !important;
  outline: 2px solid rgba(147, 83, 228, 0.3) !important;
  outline-offset: 2px !important;
  text-decoration: none !important;
}
.pagination .current {
  font-weight: 500;
  font-size: 15px;
  color: #121212;
}

/* ----- Footer ----- */
.page-footer a {
  color: #9353E4;
  font-weight: 500;
}

/* ----- Small Text / Labels ----- */
.page-status .status,
.past-incidents-header,
.timeframe-selector a {
  font-size: 0.875rem;
  font-weight: 500;
}