/* Google Fonts for retro style */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: #101820;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.header-container {
    display: flex;
    flex-direction: column; /* stack logo + buttons vertically */
    align-items: center; /* center both horizontally */
    text-align: center;
}

.logo-column {
    margin-bottom: 10px; /* space between logo and buttons */
}

.logo-column img {
    width: 500px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.7));
}

.content-column {
    flex: 2;
    padding-left: 40px;
}

.content-column h1 {
    color: #f7c948;
    font-size: 40px;
    margin: 0;
}

/* Navigation */
/* Buttons side-by-side under the logo */
.nav-buttons {
    display: flex;
    flex-direction: row;   /* <-- change from column */
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
    flex: 0;               /* don't stretch full width */
}

/* (keep your existing .nav-button styles) */
.nav-button {
    background-color: #00bfa6;
    color: #101820;
    padding: 10px 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.nav-button:hover {
    background-color: #00a896;
    color: #fff;
}

.logout {
    background-color: #ff3c38;
}

.logout:hover {
    background-color: #c22c2c;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Widgets */
.widget {
    background: #1a1a2e;
    border: 1px solid #2f3e46;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.4);
}

.widget h2 {
    color: #00d1b2;
    font-size: 26px;
    margin-bottom: 16px;
}

.widget h3 {
    color: #9ae3d0;
    font-size: 20px;
    margin-top: 22px;
    margin-bottom: 10px;
}

.value {
    font-size: 2rem;
    font-weight: bold;
    color: #f7c948;
}

/* Logs */
pre {
    background: #0d1b2a;
    padding: 20px;
    border: 1px dashed #2f3e46;
    border-radius: 10px;
    overflow-x: auto;
    max-height: 420px;
    color: #c9d6df;
    font-size: 1.5em;     /* BIGGER font */
    line-height: 1.8;     /* more breathing room */
    font-weight: 500;     /* make it slightly bolder */
}


/* Buttons */
.button {
    background: #1abc9c;
    color: #000;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
    font-family: inherit;
}

.button:hover {
    background: #16a085;
    color: #fff;
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    background: #1a1a2e;
    border: 1px solid #2f3e46;
    border-radius: 12px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.4);
    padding: 40px 30px 30px 30px;
    text-align: center;
}
.login-container h2 {
    color: #f7c948;
    margin-bottom: 24px;
    font-size: 2em;
}
.login-container input {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #2f3e46;
    background: #101820;
    color: #f0f0f0;
    font-size: 1em;
    font-family: inherit;
}
.login-container button {
    background: #00bfa6;
    color: #101820;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em;
    margin-top: 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-family: inherit;
    transition: background 0.3s;
}
.login-container button:hover {
    background: #00a896;
    color: #fff;
}
.login-container .error {
    color: #ff3c38;
    margin-bottom: 16px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content-column {
        padding-left: 0;
    }

    .nav-buttons {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        margin-top: 20px;
    }
}
/* Two-up layout for brand pairs */
.widget-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

/* Let the grid control spacing/widths */
.widget-row .widget {
  margin: 0;
  max-width: none;
  height: 100%;
}

/* Stack on small screens */
@media (max-width: 900px) {
  .widget-row {
    grid-template-columns: 1fr;
  }
}
/* Keep main content centered and tidy */
.container {
  max-width: 1200px;            /* adjust to taste */
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Two brand columns side-by-side */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  gap: 24px;                    /* space between HYK and KG columns */
  margin-bottom: 32px;          /* space before logs */
  align-items: start;
}

/* Stack the two metric cards per brand with equal spacing */
.brand-col {
  display: grid;
  grid-auto-rows: 1fr;          /* makes both cards the same height inside a column */
  gap: 24px;
}

/* Let the grid control sizing; no extra margins fighting layout */
.brand-col .widget {
  margin: 0;
  height: 100%;
  box-sizing: border-box;
  display: flex;                /* ensures inner content lays out nicely */
  flex-direction: column;
}

/* Mobile: stack columns */
@media (max-width: 900px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
}
/* Level 2×2 metric grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  gap: 24px;
  align-items: stretch;  /* stretch cards to row height */
  margin-bottom: 32px;
}

.metrics-grid .widget {
  margin: 0;            /* let grid control spacing */
  height: 100%;         /* fill the cell so rows align */
  box-sizing: border-box;
}

/* Stack on small screens */
@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
