:root {
  --navy-950: #0b1733;
  --navy-900: #102044;
  --navy-800: #172e5b;
  --navy-700: #244477;

  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;

  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;

  --yellow-600: #ca8a04;
  --yellow-500: #eab308;
  --yellow-100: #fef9c3;

  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-100: #fee2e2;

  --gray-950: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f8fafc;

  --white: #ffffff;

  --shadow-sm:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 1px 3px rgba(15, 23, 42, 0.06);

  --shadow-md:
    0 12px 30px rgba(15, 23, 42, 0.07);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--gray-50);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(
      180deg,
      rgba(241, 245, 249, 0.8) 0,
      var(--gray-50) 420px
    );
  color: var(--gray-900);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  background:
    linear-gradient(
      115deg,
      var(--navy-950),
      var(--navy-800)
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 5px 22px rgba(11, 23, 51, 0.16);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.header-label {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.main-content {
  padding-block: 48px 70px;
}

.hero-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.hero-section h1 {
  margin: 0;
  color: var(--gray-950);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-description {
  max-width: 620px;
  margin: 13px 0 0;
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1.7;
}

.overall-status {
  min-width: 290px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.overall-status strong,
.overall-status span {
  display: block;
}

.overall-status strong {
  margin-bottom: 3px;
  color: var(--gray-900);
  font-size: 14px;
}

.overall-status div > span {
  color: var(--gray-500);
  font-size: 12px;
}

.status-pulse {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 999px;
  background: var(--gray-400);
}

.status-operational {
  border-color: rgba(34, 197, 94, 0.22);
  background: var(--green-50);
}

.status-operational .status-pulse {
  background: var(--green-500);
}

.status-operational .status-pulse::after {
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(34, 197, 94, 0.35);
  border-radius: inherit;
  content: "";
  animation: status-pulse 1.8s ease-out infinite;
}

.status-outage {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff7f7;
}

.status-outage .status-pulse {
  background: var(--red-600);
}

@keyframes status-pulse {
  0% {
    opacity: 0.75;
    transform: scale(0.65);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

.card {
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.card-header {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--gray-200);
}

.card-header h2,
.card-header h3 {
  margin: 0;
  color: var(--gray-950);
}

.card-header h2 {
  font-size: 19px;
  letter-spacing: -0.015em;
}

.card-subtitle {
  margin: 6px 0 0;
  color: var(--gray-500);
  font-size: 13px;
}

.service-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.service-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.service-dot-loading {
  background: var(--gray-400);
}

.service-dot-up {
  background: var(--green-500);
  box-shadow: 0 0 0 5px var(--green-100);
}

.service-dot-down {
  background: var(--red-600);
  box-shadow: 0 0 0 5px var(--red-100);
}

.service-status {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-text-loading {
  color: var(--gray-600);
  background: var(--gray-100);
}

.status-text-up {
  color: var(--green-700);
  background: var(--green-100);
}

.status-text-down {
  color: var(--red-700);
  background: var(--red-100);
}

.period-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 18px;
}

.period-toolbar h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 14px;
}

.period-toolbar p {
  margin: 5px 0 0;
  color: var(--gray-500);
  font-size: 12px;
}

.period-selector {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
}

.period-button {
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--gray-500);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.period-button:hover {
  color: var(--gray-900);
}

.period-button.active {
  color: var(--navy-900);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.uptime-bars {
  height: 54px;
  display: flex;
  align-items: stretch;
  gap: 3px;
  padding: 0 26px;
}

.uptime-bar {
  min-width: 3px;
  flex: 1;
  border: 0;
  border-radius: 3px;
  background: var(--gray-200);
  transition:
    transform 150ms ease,
    opacity 150ms ease;
}

.uptime-bar:hover,
.uptime-bar:focus-visible {
  z-index: 2;
  outline: none;
  opacity: 0.82;
  transform: translateY(-3px);
}

.uptime-bar-green {
  background: var(--green-500);
}

.uptime-bar-blue {
  background: var(--blue-500);
}

.uptime-bar-yellow {
  background: var(--yellow-500);
}

.uptime-bar-red {
  background: var(--red-600);
}

.uptime-bar-grey {
  background:
    repeating-linear-gradient(
      135deg,
      var(--gray-200),
      var(--gray-200) 4px,
      var(--gray-100) 4px,
      var(--gray-100) 8px
    );
}

.bars-loading {
  width: 100%;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  background: var(--gray-50);
  font-size: 13px;
}

.uptime-scale {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 11px 26px 24px;
  color: var(--gray-500);
  font-size: 11px;
}

.uptime-scale > span:last-child {
  text-align: right;
}

.uptime-total {
  color: var(--gray-600);
  font-weight: 600;
  text-align: center;
}

.uptime-total span {
  color: var(--green-700);
  font-weight: 800;
}

.ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-200);
}

.ratio-item {
  padding: 21px 24px;
  border-right: 1px solid var(--gray-200);
}

.ratio-item:last-child {
  border-right: 0;
}

.ratio-item span,
.ratio-item strong {
  display: block;
}

.ratio-item span {
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.ratio-item strong {
  color: var(--gray-950);
  font-size: 23px;
  letter-spacing: -0.025em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 11px;
  font-weight: 700;
}

.live-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green-500);
}

/* ==========================================================================
   YENİ 2'Lİ KART IZGARASI: %50 - %50 YAN YANA GÖRÜNÜM
   ========================================================================== */

.response-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.response-grid-container > .performance-card,
.response-grid-container > .smtp-status-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

/* Yanıt Süresi İstatistikleri */
.compact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.compact-stats .response-stat {
  padding: 16px 20px;
  border-right: 1px solid var(--gray-200);
}

.compact-stats .response-stat:last-child {
  border-right: 0;
}

.compact-stats .response-stat strong {
  font-size: 22px;
}

/* Yanıt Süresi Grafiği */
.compact-chart {
  height: 240px;
  padding: 15px 22px 5px;
}

/* Custom Kart Gövdesi (Mail Kartı İçi) */
.card-body-custom {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

/* Zoho SMTP Durum Gösterimi */
.service-status-display {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Zoho Durum İkon Tasarımları */
.status-icon.icon-loading {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
}
.status-icon.icon-loading::after {
  content: "⌛";
  font-size: 16px;
}

.status-icon.icon-up {
  background: var(--green-50);
  border: 2px solid var(--green-200);
  color: var(--green-600);
}
.status-icon.icon-up::after {
  content: "✓";
  font-size: 18px;
  font-weight: 800;
}

.status-icon.icon-down {
  background: #fff7f7;
  border: 2px solid rgba(220, 38, 38, 0.2);
  color: var(--red-600);
}
.status-icon.icon-down::after {
  content: "✕";
  font-size: 16px;
  font-weight: 800;
}

/* Durum Rozetleri */
.badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.status-badge-loading {
  color: var(--gray-600);
  background: var(--gray-100);
}
.status-badge-up {
  color: var(--green-700);
  background: var(--green-100);
}
.status-badge-down {
  color: var(--red-700);
  background: var(--red-100);
}

/* Sayfalama (Pagination) Tasarımı */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-block: 8px;
}

.pagination-button {
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600;
  transition: all 150ms ease;
  user-select: none;
}

.pagination-button:hover:not(:disabled) {
  border-color: var(--gray-400);
  color: var(--gray-900);
  background: var(--gray-50);
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
}

/* ==========================================================================
   ORİJİNAL DUYURU (ANNOUNCEMENT) HİZALAMA KURALLARI (TAMAMEN ONARILDI)
   ========================================================================== */

.response-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--gray-200);
}

.response-stat {
  padding: 21px 25px;
  border-right: 1px solid var(--gray-200);
}

.response-stat:last-child {
  border-right: 0;
}

.response-stat span,
.response-stat strong,
.response-stat small {
  display: block;
}

.response-stat span {
  margin-bottom: 9px;
  color: var(--gray-500);
  font-size: 12px;
}

.response-stat strong {
  color: var(--navy-900);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.response-stat small {
  margin-top: 3px;
  color: var(--gray-400);
  font-size: 10px;
}

.chart-wrapper {
  position: relative;
  height: 320px;
  padding: 25px 22px 5px;
}

#response-chart {
  width: 100%;
  height: 100%;
}

.chart-empty {
  position: absolute;
  inset: 30px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-md);
  color: var(--gray-500);
  background: var(--gray-50);
  font-size: 13px;
}

.chart-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  padding: 13px 26px 22px;
  color: var(--gray-400);
  font-size: 10px;
}

.chart-footer span:nth-child(2) {
  color: var(--gray-500);
  font-weight: 600;
  text-align: center;
}

.chart-footer span:last-child {
  text-align: right;
}

.announcements-section {
  padding-top: 20px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  color: var(--gray-950);
  font-size: 25px;
  letter-spacing: -0.025em;
}

.section-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--gray-500);
  line-height: 1.6;
}

.history-heading {
  margin: 31px 0 14px;
}

.history-heading h3 {
  margin: 0;
  color: var(--gray-700);
  font-size: 14px;
}

.announcement-card {
  padding: 25px 26px;
}

.announcement-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.announcement-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.announcement-icon {
  width: 35px;
  height: 35px;
  display: grid;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
}

.announcement-icon-maintenance {
  color: var(--blue-600);
  background: var(--blue-100);
}

.announcement-icon-incident {
  color: var(--red-700);
  background: var(--red-100);
}

.announcement-icon-update {
  color: var(--green-700);
  background: var(--green-100);
}

.announcement-card h3 {
  margin: 1px 0 6px;
  color: var(--gray-950);
  font-size: 16px;
}

.announcement-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 11px;
}

.announcement-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.badge-scheduled {
  color: var(--blue-600);
  background: var(--blue-100);
}

.badge-in-progress {
  color: var(--yellow-600);
  background: var(--yellow-100);
}

.badge-resolved,
.badge-completed {
  color: var(--green-700);
  background: var(--green-100);
}

.badge-investigating {
  color: var(--red-700);
  background: var(--red-100);
}

.announcement-message {
  margin: 19px 0 0 48px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

.announcement-updates {
  margin: 22px 0 0 48px;
  padding-left: 18px;
  border-left: 2px solid var(--gray-200);
}

.announcement-update {
  position: relative;
  padding-bottom: 18px;
}

.announcement-update:last-child {
  padding-bottom: 0;
}

.announcement-update::before {
  position: absolute;
  top: 4px;
  left: -24px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--blue-500);
  box-shadow: 0 0 0 1px var(--gray-300);
  content: "";
}

.announcement-update-time {
  display: block;
  margin-bottom: 5px;
  color: var(--gray-400);
  font-size: 10px;
  font-weight: 700;
}

.announcement-update p {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.6;
}

.announcements-loading {
  padding: 28px;
  color: var(--gray-500);
  text-align: center;
}

.empty-state {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 25px 27px;
}

.empty-state-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 20px;
  font-weight: 800;
}

.empty-state h3 {
  margin: 0 0 5px;
  color: var(--gray-900);
  font-size: 15px;
}

.empty-state p {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--gray-500);
  font-size: 12px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green-500);
}

  /* Yanıt süresi grafiği düzeltmesi */

.hidden {
  display: none !important;
}

.chart-wrapper.compact-chart {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  min-height: 300px;
  padding: 20px 16px 8px;
  overflow: hidden;
}

.chart-wrapper.compact-chart #response-chart {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

.chart-wrapper.compact-chart .chart-empty {
  position: absolute;
  inset: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
}

.chart-wrapper.compact-chart .chart-empty.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .chart-wrapper.compact-chart {
    height: 260px;
    min-height: 260px;
  }
}
