/* Body & background */ 
body { 
  background-color: #000; 
  color: #e5e7eb; 
  font-family: 'Montserrat', sans-serif; 
}

/* Navigation Bar */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: #1f2937 !important;
  color: #ffffff !important;
}

.nav-link.active {
  background-color: #1f2937 !important;
  color: #ffffff !important;
}

/* Toggle switches */ 
.toggle-switch { 
  display: flex; 
  align-items: center; 
  justify-content: flex-start; 
  position: relative; 
  padding: 8px 12px; 
  cursor: pointer; 
  font-size: 14px; 
  user-select: none; 
}

.toggle-switch input { 
  display: none; 
}

.switch-slider { 
  position: relative; 
  width: 36px; 
  height: 18px; 
  background-color: #6b7280; 
  border-radius: 9px; 
  margin-right: 8px; 
  transition: background 0.2s; 
}

.switch-slider::before { 
  content: ""; 
  position: absolute; 
  height: 14px; 
  width: 14px; 
  left: 2px; 
  bottom: 2px; 
  background-color: white; 
  border-radius: 50%; 
  transition: transform 0.2s; 
}

.toggle-switch input:checked + .switch-slider { 
  background-color: #11b981; 
}

.toggle-switch input:checked + .switch-slider::before { 
  transform: translateX(18px); 
}

.toggle-switch:hover { 
  background-color: #1f2937; 
  border-radius: 6px; 
}

/* Model cards (uptime) */ 
.stack-container { 
  padding: 8px 16px; 
}

.model { 
  margin: 16px auto; 
  background: #111827; 
  border-radius: 10px; 
  padding: 8px 12px; 
  max-width: 100%;
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width calculation */
  overflow: visible; /* Allow tooltips to be visible */
  position: relative;
}

@media (max-width: 768px) { 
  .model { max-width: 100%; } 
  .dropdown-container { max-width: 100%; } 
}

/* Divider */ 
.endpoint-divider { 
  border: 0; 
  height: 1px; 
  background: #444; 
  margin: 12px 20%; 
}

/* Model header & blocks */ 
.model-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  margin-bottom: 6px; 
}

.model-name { 
  font-weight: 500; 
  font-size: 14px; 
  display: flex; 
  align-items: center; 
  gap: 6px; 
}

.model-name.ok::before {
  content: "✔";
  color: #11b981;
}

/* last day bad */ 
.model-name.bad::before { 
  content: "✖"; 
  color: #f87171; 
}

.uptime { 
  font-size: 13px; 
  font-weight: 500; 
}

.uptime-green { color: #11b981; } 
.uptime-yellow { color: #facc15; } 
.uptime-orange { color: #fb923c; } 
.uptime-red { color: #f97171; }
.uptime-blue { color: #5FA5FA; }

.blocks { 
  display: flex; 
  flex-wrap: nowrap; 
  overflow: visible; /* Allow tooltips to be visible */
  gap: 2px; 
  width: 100%; 
  position: relative;
  min-width: 0; /* Allow flex items to shrink */
  box-sizing: border-box; /* Include padding in width calculation */
}

.block { 
  flex: 0 1 auto; 
  height: 30px; 
  border-radius: 4px;
  transition: filter 0.15s ease;
  position: relative; /* For tooltip positioning */
  min-width: 2px; /* Minimum width to ensure visibility */
  box-sizing: border-box;
}

.block:hover { 
  filter: brightness(1); 
}

.block .tooltip-text {
  opacity: 0;
  position: absolute;
  bottom: 70%; /* above the block */
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: linear-gradient(135deg, #333, #555);
  color: #fff;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  white-space: nowrap;
  z-index: 10000;
  transition: opacity 0.2s, transform 0.2s;
  min-width: max-content;
  pointer-events: none;
  overflow: visible;
  max-width: none;
  margin-bottom: 8px;
}
.block:hover .tooltip-text {
  overflow: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-8px); /* slight pop effect above */
}
.tooltip-status {
  font-weight: 300;
  font-size: 0.85rem;
  color: white;
  text-transform: capitalize;
}
.tooltip-divider {
  height: 1px;
  background-color: rgba(255,255,255,0.3);
  margin: 4px 0;
}
.tooltip-time {
  font-size: 0.75rem;
  color: #9b9b9b;
}
.block.up { background-color: #11b981; }
.block.down { background-color: #f97171; }
.block.shortlyDown { background-color: #f1a262; }
.block.nodata { background-color: #6b7280; }
.block.maintenance { background-color: #5FA5FA; }

.block.up:hover {
  background-color: #0e7a50;
}

.block.down:hover {
  background-color: #5c0c0c;
}

.block.shortlyDown:hover {
  background-color: #b85c1c;
}

.block.maintenance:hover {
  background-color: #477cc0;
}
.block.nodata:hover {
  background-color: #4b5563;
}

.footer { 
  display: flex; 
  justify-content: space-between; 
  font-size: 11px; 
  color: #9ca3af; 
  margin-top: 6px; 
}

/* Maintenance section - Previous maintenance windows */
#maintenance-windows {
  margin-top: 40px;
  max-width: 40%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.maintenance-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 24px;
  padding: 0;
}

.maintenance-incidents {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.maintenance-incident {
  padding: 16px;
  border: 0.5px solid #1f2937;
  border-radius: 8px;
}

.maintenance-divider {
  border: 0;
  height: 1px;
  background: #363636;
  margin: 12px 5%;
}

.incident-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  width: 100%;
}

.incident-header .incident-date {
  flex-shrink: 0;
}

.incident-header .incident-badge {
  margin-left: auto;
  flex-shrink: 0;
}

.incident-date {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 500;
}

.incident-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.maintenance-badge {
  background-color: #5FA5FA;
  color: #ffffff;
}

.incident-badge-red {
  background-color: #ef4444;
  color: #ffffff;
}

.incident-description {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 12px;
  font-weight: 500;
}

.incident-resolved {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(17, 185, 129, 0.1);
  border-radius: 6px;
  border-left: 3px solid #11b981;
}

.resolved-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #11b981;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.resolved-content {
  flex: 1;
}

.resolved-text {
  font-size: 0.85rem;
  color: #e5e7eb;
  font-weight: 500;
  margin-bottom: 4px;
}

.resolved-detail {
  font-size: 0.8rem;
  color: #9ca3af;
}

.incident-in-progress {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(250, 204, 21, 0.1);
  border-radius: 6px;
  border-left: 3px solid #facc15;
}

.incident-in-progress-long {
  background: rgba(239, 68, 68, 0.12);
  border-left-color: #ef4444;
}

.in-progress-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #facc15;
  color: #000000;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
  animation: spin 2s linear infinite;
}

.in-progress-icon-long {
  background-color: #ef4444;
  color: #ffffff;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.in-progress-content {
  flex: 1;
}

.in-progress-text {
  font-size: 0.85rem;
  color: #e5e7eb;
  font-weight: 500;
  margin-bottom: 4px;
}

.in-progress-detail {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Status panel */ 
.status-container { 
  font-family: 'Montserrat', sans-serif; 
  color: #e5e7eb; 
  padding: 24px 18px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  background-color: #111827; 
  border-radius: 12px; 
  max-width: 400px; 
  margin: 0 auto; 
}

.status-container img { 
  display: block; 
  width: 100%; 
  height: auto; 
  border-radius: 12px; 
  object-fit: cover; 
  max-width: 160px; 
  margin-bottom: 16px; 
}

.status-circle { 
  width: 25px; 
  height: 25px; 
  border-radius: 50%; 
  margin: 0 auto 12px auto; 
  box-shadow: 0 0 12px rgba(0,0,0,0.6); 
}

.status-text { 
  font-size: 25px; 
  font-weight: 600; 
  text-align: center; 
}

.status-updated { 
  font-size: 17px; 
  color: #9ca3af; 
  margin-top: 4px; 
  text-align: center; 
}

/* Collapsible sections*/ 
.section { 
  margin: 16px auto; 
  max-width: 60%; 
  background: #111827; 
  border-radius: 10px; 
  padding: 0; 
  overflow: visible; /* Allow tooltips to be visible */
  border: 1px solid #1f2937;
  position: relative;
}

.section-header { 
  width: 100%; 
  padding: 14px 16px; 
  background: #0f1620; 
  color: #e5e7eb; 
  border: none;
  border-radius: 10px;
  font-size: 16px; 
  font-weight: 600; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  cursor: pointer; 
  text-align: left;
}

.section-header:hover { 
  background: #1a2332; 
}

.arrow { 
  transition: transform 0.25s ease; 
  font-size: 14px; 
}

/* collapsed by default */ 
.section-content { 
  max-height: 0; 
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease; 
}

/* expanded state */ 
.section-content.open { 
  padding-right: 16px;
  padding-left: 16px;
  padding-bottom: 24px; /* Extra padding at bottom to prevent overlap */
  overflow: visible; /* Allow tooltips to be visible */
  position: relative;
  margin-bottom: 0;
  min-height: 0; /* Allow content to determine height */
  max-height: none; /* Remove max-height restriction */
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Ensure model containers don't restrict block width but stay contained */
.section-content.open .model {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible; /* Allow tooltips to be visible */
}

/* Page Title */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0 0 24px 0;
  text-align: center;
}

/* Date Range Selector */
.date-range-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.date-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #e5e7eb;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.date-nav-btn:hover {
  background-color: #374151;
  border-color: #4b5563;
}

.date-range-text {
  font-size: 1rem;
  color: #e5e7eb;
  font-weight: 500;
  min-width: 200px;
  text-align: center;
}

/* Events Container */
.events-container {
  max-width: 60%;
  margin: 0 auto;
  padding: 0 20px;
}

.incidents-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Month Section */
.month-section {
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.month-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 20px;
}

/* Day Section */
.day-section {
  margin-bottom: 24px;
}

.day-section:last-child {
  margin-bottom: 0;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.day-header-clickable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #1a1f2e;
  border: 1px solid #1f2937;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
  margin-bottom: 12px;
}

.day-header-clickable:hover {
  background-color: #1f2937;
}

.day-header-clickable[style*="cursor: default"]:hover {
  background-color: #1a1f2e;
  cursor: default;
}

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

.day-toggle-icon {
  font-size: 0.9rem;
  color: #9ca3af;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
  min-width: 20px;
}

.day-header-clickable:hover .day-toggle-icon {
  color: #e5e7eb;
}

.day-content {
  padding-left: 24px;
  padding-right: 16px;
  padding-top: 8px;
  padding-bottom: 12px;
  animation: slideDown 0.2s ease;
  border-left: 2px solid #1f2937;
  margin-left: 8px;
  margin-bottom: 8px;
}

.day-content .event-card {
  margin-left: 0;
  margin-right: 0;
}

.day-content .incident-card {
  margin-left: 0;
  margin-right: 0;
}

.day-default-content {
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.more-incidents-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: rgba(31, 41, 55, 0.5);
  border-top: 1px solid #1f2937;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0 0 8px 8px;
}

.more-incidents-indicator:hover {
  background-color: #1f2937;
}

.more-incidents-text {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 500;
}

.more-incidents-indicator:hover .more-incidents-text {
  color: #e5e7eb;
}

.more-incidents-icon {
  font-size: 0.9rem;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.more-incidents-indicator:hover .more-incidents-icon {
  color: #e5e7eb;
}

.day-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e7eb;
}

.day-count {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Event Card */
.event-card {
  background-color: #0f1620;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}

.event-card:last-child {
  margin-bottom: 0;
}

.incident-card {
  padding: 0;
  overflow: hidden;
}

.incident-header-clickable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
}

.incident-header-clickable:hover {
  background-color: #1a1f2e;
}

.incident-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding-right: 16px;
  min-width: 0; /* Allow flex item to shrink */
}

.incident-header-content .event-title {
  padding-right: 120px;
  min-width: 0;
  flex: 1;
}

.incident-toggle-icon {
  font-size: 0.9rem;
  color: #9ca3af;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
  min-width: 20px;
}

.incident-header-clickable:hover .incident-toggle-icon {
  color: #e5e7eb;
}

.incident-details {
  padding: 0 20px 16px 20px;
  border-top: 1px solid #1f2937;
  margin-top: 0;
  animation: slideDown 0.2s ease;
  margin-left: 12px;
  border-left: 2px solid #374151;
  padding-left: 24px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

.affected-models-section {
  margin: 16px 0;
  padding: 12px;
  background-color: rgba(31, 41, 55, 0.5);
  border-radius: 6px;
  border-left: 3px solid #6b7280;
  margin-left: 0;
}

.affected-models-label {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 8px;
  font-weight: 500;
}

.affected-models-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.affected-model-item {
  font-size: 0.9rem;
  color: #e5e7eb;
  padding: 6px 10px;
  background-color: rgba(15, 22, 32, 0.6);
  border-radius: 4px;
  border-left: 2px solid #4b5563;
}

.event-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
  margin: 0;
  padding-right: 120px;
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.maintenance-card .event-title {
  padding-right: 120px;
}

.event-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(17, 185, 129, 0.1);
  border-radius: 6px;
  border-left: 3px solid #11b981;
  margin-top: 10px;
  margin-bottom: 8px;
}

.event-status.in-progress {
  background: rgba(250, 204, 21, 0.1);
  border-left: 3px solid #facc15;
}

.event-status.ongoing {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
}

.event-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #11b981;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.event-status-icon.in-progress-icon {
  background-color: #facc15;
  color: #000000;
  font-size: 0.9rem;
  animation: spin 2s linear infinite;
}

.event-status-icon.ongoing-icon {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.9rem;
  animation: spin 2s linear infinite;
}

.event-status-content {
  flex: 1;
}

.event-status-text {
  font-size: 0.85rem;
  color: #e5e7eb;
  font-weight: 500;
  margin-bottom: 4px;
}

.event-description {
  font-size: 0.8rem;
  color: #9ca3af;
}

.event-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  position: absolute;
  top: 16px;
  right: 16px;
  white-space: nowrap;
  z-index: 1;
}

.incident-card .event-badge {
  position: relative;
  top: 0;
  right: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.event-badge.maintenance {
  background-color: #5FA5FA;
  color: #ffffff;
}

.event-badge.downtime {
  background-color: #ef4444;
  color: #ffffff;
}

.event-badge.resolved {
  background-color: #11b981;
  color: #ffffff;
}

.event-updates {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.event-updates:hover {
  color: #9ca3af;
}

@media (max-width: 768px) { 
  .section { 
    max-width: 100%;
    margin-bottom: 32px !important; /* More space between sections on mobile */
    overflow: hidden; /* Contain content within section */
    width: 100%;
    box-sizing: border-box;
  }
  
  .model {
    margin-bottom: 20px; /* Add more space between models */
    position: relative;
    width: 100%; /* Ensure models take full width */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%;
    overflow: hidden; /* Contain blocks within model */
  }
  
  .section-content {
    position: relative;
    width: 100%; /* Ensure content takes full width */
    box-sizing: border-box;
  }
  
  .section-content.open {
    margin-bottom: 0;
    overflow: visible; /* Allow tooltips to be visible */
    position: relative;
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding in width calculation */
    max-height: none;
  }
  
  .section {
    overflow: visible; /* Allow tooltips to be visible on mobile */
  }
  
  .model {
    overflow: visible; /* Allow tooltips to be visible on mobile */
  }
  
  .blocks {
    overflow: visible; /* Allow tooltips to be visible on mobile */
  }
  
  #maintenance-windows { 
    max-width: 100%; 
    padding: 0 16px;
  }
  .events-container {
    max-width: 100%;
    padding: 0 16px;
  }
  .page-title {
    font-size: 1.5rem;
  }
  
  /* Navigation */
  .main-nav {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  /* Day headers */
  .day-header-clickable,
  .day-header {
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  
  .day-header-content {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .day-date {
    font-size: 0.75rem;
  }
  
  .day-count {
    font-size: 0.7rem;
  }
  
  /* Event cards */
  .event-card {
    padding: 12px;
  }
  
  .event-title {
    font-size: 0.9rem;
    padding-right: 80px;
    word-break: break-word;
  }
  
  .event-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    top: 12px;
    right: 12px;
  }
  
  .incident-card .event-badge {
    position: relative;
    top: 0;
    right: 0;
  }
  
  /* Incident headers */
  .incident-header-clickable,
  .incident-header {
    padding: 12px;
    flex-wrap: wrap;
  }
  
  .incident-header-content {
    flex-wrap: wrap;
    gap: 6px; /* Reduced from 8px */
    padding-right: 4px; /* Reduced from 8px */
  }
  
  .incident-header-content .event-title {
    padding-right: 50px; /* Reduced from 70px */
    word-break: keep-all;
    line-height: 1.4;
    font-size: 0.8rem;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: calc(100% - 80px); /* Reduced from 100px */
  }
  
  .incident-toggle-icon {
    margin-left: 4px !important; /* Reduced from 8px */
    min-width: 16px !important; /* Reduced from 20px */
    font-size: 0.8rem !important; /* Reduced from 0.9rem */
  }
  
  .event-badge {
    padding: 3px 8px !important; /* Reduced from 4px 12px */
    font-size: 0.7rem !important; /* Reduced from 0.75rem */
  }
  
  /* For very small screens */
  @media (max-width: 400px) {
    .incident-header-content {
      padding-right: 2px;
      gap: 4px;
    }
    
    .incident-header-content .event-title {
      padding-right: 40px; /* Reduced from 55px */
      font-size: 0.7rem;
      line-height: 1.5;
      max-width: calc(100% - 70px); /* Reduced from 85px */
      letter-spacing: -0.3px;
    }
    
    .incident-toggle-icon {
      margin-left: 2px !important;
      min-width: 14px !important;
      font-size: 0.75rem !important;
    }
    
    .event-badge {
      padding: 2px 6px !important;
      font-size: 0.65rem !important;
    }
  }
  
  /* For small screens */
  @media (max-width: 420px) {
    .incident-header-content {
      padding-right: 3px;
      gap: 5px;
    }
    
    .incident-header-content .event-title {
      padding-right: 20px; /* Reduced from 60px */
      font-size: 0.75rem;
      line-height: 1.5;
      max-width: calc(100% - 75px); /* Reduced from 90px */
    }
    
    .incident-toggle-icon {
      margin-left: 3px !important;
      min-width: 15px !important;
      font-size: 0.8rem !important;
    }
    
    .event-badge {
      padding: 2.5px 7px !important;
      font-size: 0.68rem !important;
    }
  }
  
  /* For medium-small screens */
  @media (max-width: 480px) {
    .incident-header-content {
      padding-right: 4px;
      gap: 6px;
    }
    
    .incident-header-content .event-title {
      padding-right: 10px; /* Reduced from 65px */
      font-size: 0.78rem;
      line-height: 1.4;
      max-width: calc(100% - 80px); /* Reduced from 95px */
    }
    
    .incident-toggle-icon {
      margin-left: 4px !important;
      min-width: 16px !important;
      font-size: 0.85rem !important;
    }
    
    .event-badge {
      padding: 3px 8px !important;
      font-size: 0.7rem !important;
    }
  }
  
  /* Status sections */
  .event-status {
    padding: 10px;
    flex-wrap: wrap;
  }
  
  .event-status-icon {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
  
  .event-status-text {
    font-size: 0.8rem;
  }
  
  .event-description {
    font-size: 0.75rem;
  }
  
  /* More incidents indicator */
  .more-incidents-indicator {
    padding: 10px 12px;
  }
  
  .more-incidents-text {
    font-size: 0.8rem;
  }
  
  /* Month sections */
  .month-section {
    padding: 16px;
  }
  
  .month-header {
    font-size: 1rem;
  }
  
  /* Day content */
  .day-content {
    padding-left: 16px;
    padding-right: 12px;
  }
  
  .incident-details {
    padding: 0 12px 12px 12px;
    margin-left: 8px;
    padding-left: 16px;
  }
  
  /* Affected models */
  .affected-models-section {
    padding: 10px;
  }
  
  .affected-models-label {
    font-size: 0.8rem;
  }
  
  .affected-model-item {
    font-size: 0.85rem;
    padding: 5px 8px;
  }
}