
:root {
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --accent-blue: #0984e3;
    --status-ok: #00b894;
    --palawan-blue: #004a99;
    --menu-hover: #003366;
}

body {
    background-color: var(--bg);
    color: var(--text-dark);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Official Header --- */
.official-header {
    background: #fff;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; 
    align-items: center;
}

/* Styling for the actual images */
.header-logo {
    width: 65px;      /* Matches your placeholder size */
    height: 65px;     /* Keeps it circular/square */
    object-fit: contain; /* Prevents the logo from stretching */
}

/* Optional: If you want the logos to be circular like the placeholders were */
.header-logos img {
    border-radius: 50%; 
    background: #fff; /* Adds a white background if the logo is transparent */
}

.header-logos { display: flex; gap: 15px; }
.logo-placeholder {
    width: 65px; height: 65px; background: #eee; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; text-align: center; border: 1px solid #ddd; color: #888;
}

.header-title-container { text-align: center; }
.header-title-container h2 { margin: 0; font-size: 0.85rem; letter-spacing: 1px; color: var(--text-light); text-transform: uppercase; }
.header-title-container h1 { margin: 5px 0; font-size: 1.6rem; font-weight: 800; color: var(--palawan-blue); }
.header-title-container p { margin: 0; font-size: 0.95rem; font-weight: 600; }

/* --- NEW MENU BAR --- */
nav.main-menu {
    background: var(--palawan-blue);
    padding: 0 40px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-item {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-item:hover {
    background: var(--menu-hover);
}

.menu-item.active {
    background: rgba(255,255,255,0.15);
    border-bottom: 3px solid white;
}

/* --- Main Content --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.network-status-bar {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    border-left: 4px solid var(--accent-blue);
    padding-left: 15px;
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.station-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 20px;
    border-top: 4px solid var(--status-ok);
}

.station-name { font-size: 1.2rem; font-weight: 700; display: block; }
.last-update { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; }

.main-metrics {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}

.metric { text-align: center; flex: 1; }
.metric-label { font-size: 0.65rem; color: var(--text-light); text-transform: uppercase; display: block; }
.metric-value { font-size: 1.4rem; font-weight: 700; color: var(--palawan-blue); }

.details-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.85rem; }
.detail-item { display: flex; justify-content: space-between; border-bottom: 1px solid #f1f1f1; padding-bottom: 4px; }
.detail-item b { color: var(--text-dark); }

/*content john*/
.wrap {
  margin-left: 2%;
}

section {
  margin-top: 2%;
  margin-bottom: 2%;
}

.map-title {
    font-size: 24px;
    font-weight: bold;
    color: #003593;
    text-transform: uppercase;
    margin-bottom: 1%;
}

#map {
    width: 97%;
    height: calc(80vh - 80px);
}

#weatherChart {
    width: 97%;
    height: 65vh;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
/* --- Footer --- */
footer {
    background: #fff;
    padding: 20px 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*export*/
.report-cards-title {
  color: white;
  text-transform: uppercase;
  font-size: 24px;
  color: var(--palawan-blue);
}

.excel-card {
  box-sizing: border-box;
  border: 1px solid #ccc;
  padding: 20px;
  background: white;
  border-radius: 10px 10px 10px 10px;
  box-shadow: 2px 2px grey;
}

.excel-title {
  color: var(--palawan-blue);
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-align: center;
}

.excel-flex {
  margin-top: 2%;
  gap: 5px;
  display: flex;
  flex-direction: column;
}

.excel-flex a{
  text-align: center;
  text-decoration: none;
  background: var(--palawan-blue);
  color: white;
  font-size: 24px;
}

.excel-flex a:hover {
  background: green;
}

.excel-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

@media only screen and (max-width: 368px) { 
  .station-card {
    width: 75% !important;
  } 
}