      
      
         :root {
            --primary: #14b595;
            --success: #14b595;
            --warning: #d97706;
            --danger: #dc2626;
            --info: #14b595;
            --light-bg: #f8fafc;
            --border: #e2e8f0;
            --text-dark: #1e293b;
            --text-light: #64748b;
            --text-muted: #94a3b8;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
        }

        body {
            background-color: var(--light-bg);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--text-dark);
            line-height: 1.6;
        }




/* Custom tooltip for info icons */
.info-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: #6c757d;
}

.table-modern td {
  white-space: normal !important;
  word-wrap: break-word;
}

.info-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip-box {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 0;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  width: 280px;
  text-align: left;
  transition: opacity 0.3s ease;
}

.info-icon:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
}

.info-icon .tooltip-box {
  visibility: hidden;
  opacity: 0;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 10px;
  position: absolute;
  z-index: 10;
  bottom: 125%; /* Show above the icon */
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.2s;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

.info-icon .tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.info-icon:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
}


      /* Banner section */
      .status-header {
        background: linear-gradient(135deg, #14b595 0%, #0f7f6c 100%);
            position: relative;
            overflow: hidden;
        }

        .status-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle fill="white" opacity="0.08" cx="10" cy="10" r="1.5"/></pattern></defs><rect fill="url(%23dots)" width="100" height="100"/></svg>');
        }

        .header-content {
            position: relative;
            z-index: 2;
        }
/* end */
        /* overall status */
            .overall-status {
            background: white;
            border-radius: 16px;
            padding: 1rem;
            margin-bottom: 2rem;
            // box-shadow: var(--shadow-md);//
            // border: 1px solid var(--border);//
        }

        .status-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .status-dot {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .status-operational {
            background-color: var(--success);
        }
/* end */

/* service section */
      .status-operational {
            background-color: var(--success);
        }
         @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .service-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .service-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        }

        .service-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

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

        .service-name {
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 0.5rem;
        }

        .service-status {
            font-size: 0.875rem;
            font-weight: 500;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .status-operational-text {
            background: #dcfce7;
            color: #166534;
        }
.status-maintenance-text {
    background-color: #fff6e0 !important;
    color: #d35400;
}

.status-inprogress-text {
  background-color: #ffe5e5 !important;
  color: #c0392b;
}
/* end */



/* Fix for tooltip getting clipped */
.incident-table {
  overflow: visible !important;
  position: relative;
}

/* Wrap your table inside a new scroll container */
.table-scroll-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
}

/* Tooltip fixes */
.info-icon .tooltip-box {
  z-index: 9999; /* ensure top layer */
  white-space: normal;
  max-width: 280px;
  overflow-wrap: break-word;
}


/* Table section */
  .incident-section {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border);
            margin-bottom: 2rem;
        }

        .incident-filters {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .filter-tab {
            padding: 0.5rem 1rem;
            border: 2px solid var(--border);
            border-radius: 20px;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.875rem;
        }

        .filter-tab.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .incident-table {
            overflow-x: auto;
        }

        .table-modern {
            width: 100%;
            margin-bottom: 0;
            background: white;
        }

        .table-modern th {
            background: var(--light-bg);
            font-weight: 600;
            color: var(--text-dark);
            border: none;
            padding: 1rem;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            white-space: nowrap;
        }

        .table-modern td {
            padding: 1rem;
            border-color: var(--border);
            vertical-align: middle;
        }

        .table-modern tbody tr {
            transition: all 0.2s ease;
        }

        .table-modern tbody tr:hover {
            background: var(--light-bg);
        }

        .incident-badge {
            padding: 0.375rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            white-space: nowrap;
        }

        .badge-resolved {
            background: #dcfce7;
            color: #166534;
        }

        .badge-investigating {
            background: #fef3c7;
            color: #92400e;
        }

        .badge-identified {
            background: #dbeafe;
            color: #1e40af;
        }

        .badge-monitoring {
            background: #f0f9ff;
            color: #0369a1;
        }

        .badge-scheduled {
            background: #f1f5f9;
            color: #475569;
        }

        .region-tag {
            background: #f1f5f9;
            color: var(--text-light);
            padding: 0.25rem 0.5rem;
            border-radius: 12px;
            font-size: 0.75rem;
            margin: 0.125rem;
            display: inline-block;
        }

        .subscribe-section {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border);
            text-align: center;
        }

        .bg-clr{
            background-color:#14b595 !important;
            color:white !important
        }
    .d-flex {
  flex-wrap: nowrap; /* keep side by side without wrapping */
  justify-content: center;
  gap: 8px; /* space between */
}

#subscribeEmail, #btnSubscribe {
  height: 44px; /* same fixed height */
  width: 300px; /* same width */
  box-sizing: border-box; /* include padding and border in width */
  font-size: 16px; /* consistent font size */
}

#btnSubscribe {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* space between icon and text */
  background-color: #14b595; /* bootstrap blue or your preferred color */
  color: white;
  border: none;
  border-radius: 4px;
}


        .btn-subscribe:hover {
            background: #14b595;
            transform: translateY(-2px);
            color: white;
            text-decoration: none;
        }
/* end */

/* Pagination */
/* Custom Pagination Styling */
.custom-pagination .page-link {
    background-color: #14b595;
    color: white;
    border: 1px solid #14b595;
}

.custom-pagination .page-link:hover {
    background-color: #119c82;
    color: white;
}

.custom-pagination .page-item.active .page-link {
    background-color: #0e8e76;
    border-color: #0e8e76;
    color: white;
}

.custom-pagination .page-item.disabled .page-link {
    background-color: #b2dfd8;
    color: #ffffff;
    pointer-events: none;
    opacity: 0.7;
}

/* end */
/* ============================
   RESPONSIVE FIXES (MOBILE)
   ============================ */
/* Small Screens – Up to 576px */
@media (max-width: 576px) {
  /* Header text */
  .header-content h1 {
    font-size: 1.6rem !important;
  }
  .header-content p {
    font-size: 0.9rem !important;
  }
  /* Overall Status */
  .overall-status {
    padding: 1rem;
  }
  #statusTitle {
    font-size: 1rem !important;
  }
  /* Incident section */
  .incident-section {
    padding: 1.2rem !important;
  }
  /* Filters Adjust */
  .incident-filters {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .filter-tab {
    width: 100% !important;
    text-align: center !important;
  }
  .incident-filters select {
    width: 100% !important;
  }
  /* Table Wrapper */
  .incident-table {
    overflow-x: auto !important;
    width: 100%;
  }
  #incidentTable {
    min-width: 600px !important; /* so columns don't squeeze */
  }
  /* Tooltip fix for mobile */
  .tooltip-box {
    width: 200px !important;
  }
  /* Subscribe Section */
  .subscribe-section {
    padding: 1.5rem !important;
  }
  .subscribe-section .d-flex {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.8rem !important;
  }
  #subscribeEmail, #btnSubscribe {
    width: 100% !important;
    height: 46px !important;
  }
}
/* Medium Screens – Tablets (576px to 768px) */
@media (max-width: 768px) {
  .incident-filters {
    flex-wrap: wrap !important;
  }
  .filter-tab {
    flex: 1 1 calc(33% - 10px);
    text-align: center;
  }
  #incidentTable {
    min-width: 700px !important;
  }
  .subscribe-section .d-flex {
    flex-direction: column;
    align-items: center;
  }
  #subscribeEmail, #btnSubscribe {
    width: 80% !important;
  }
}
/* Large Tablets (768px to 992px) */
@media (max-width: 992px) {
  .service-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  #subscribeEmail, #btnSubscribe {
    width: 280px;
  }
}