/* This file is used to handle the layout of the site */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-bg-color: rgb(89, 150, 243);
    --quality-color: #23865A;
    --notice-bg-color: #fff3f3;
    --notice-text-color: #c52828;
    --predict-bar-width: 0%;
    --quality-bar-width: 0%;
}

body {
    /* font-family: Arial, Helvetica, sans-serif; */
    /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
    font-family: 'Inter', sans-serif;
    /* this is my main one   ---------------------------- below */
    /* background-color: rgb(220, 233, 252); */
    /* this is my bright fav ---------------------------- below */
    /* background-color: rgb(59, 128, 231); */
    /* background-color: rgb(89, 150, 243); */
    background-color: var(--primary-bg-color);
    /* background-color: rgb(237, 244, 255); */
    /* background-color: #e0edfe; */
    color:rgb(7, 47, 107);
    /* margin-left:  */
}

/* h1 {
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
} */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;

  background-color: white;
  color: rgb(7, 47, 107);

  padding: 24px 32px;
  border-radius: 10px;

  margin-bottom: 28px;
  /* margin-left: 200px;
  margin-right: 20px;
  margin-top: 20px; */
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 12px;
}

.header-text h1 {
  margin: 0;
  vertical-align: auto;
  font-size: 40px;
  font-weight: 700;
}

/* .site-header {
    background-color: white;
    border-radius: 12 px;
    padding: 20 px;
} */

/* .card-container {
    display: grid;
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
}

.sensor-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sensor-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
} */

.card-container {
    display: grid;
    gap: 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1100px;
}

.sensor-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quality-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    /* width: 25%; */
    /* max-width: 450px; */
    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    /* border: 1px solid #b8c7dc; */
    box-shadow: 0 3px 10px rgba(23, 58, 99, 0.4);
}

.card h2 {
    font-size: 18px;
    font-weight: 600;
    /* color: #ff9544; */
    color: #606d87;
    margin-top: 0;
}

#ph-value {
    /* font-size: 32px;
    font-weight: bold; */
    font-size: 36px;
    font-weight: 700;
  /* color: #238477; */
}

#temp-value {
    /* font-size: 32px;
    font-weight: bold; */
    font-size: 36px;
    font-weight: 700;
  /* color: #238477; */
}

#turbidity-value {
    /* font-size: 32px;
    font-weight: bold; */
    font-size: 36px;
    font-weight: 700;
  /* color: #238477; */
}

#water-quality-value {
    /* font-size: 32px;
    font-weight: bold; */
    font-size: 36px;
    font-weight: 700;
  /* color: #238477; */
}

#pred-water-quality-value {
  /* font-size: 32px;
  font-weight: bold; */
    font-size: 36px;
    font-weight: 700;
  /* color: #238477; */
}

/* .predict-box {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    margin-left: 40 px;
    margin-right: 40 px;
    max-width: 70%;
} */



/* QUALITY BAR */

.quality-bar-track {
    width: 100%;
    height: 12px;
    background-color: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
    margin: 15px 0 8px;
    margin-top: 18px;
}

.quality-bar-fill {
    height: 100%;
    width: var(--quality-bar-width);
    background-color: rgb(36, 108, 217);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.predict-fill {
    background-color: #ff9544;
    width: var(--predict-bar-width);
}

#forecast {
    color: #ff9544;
}

.forecast-time {
    padding-top: 10px;
    color: #606d87;
    padding-bottom: 10px;

}

.sensor-unit {
    color: #606d87;
    font-size: 15px;
}

.quality-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--quality-color);
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--quality-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.forecast-change {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--notice-text-color);
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
}

.forecast-notice {
    background-color: var(--notice-bg-color);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 16px;
}

#notice-title {
    color: var(--notice-text-color);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
}

#notice-description {
    color: var(--notice-text-color);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 600px) {
    .site-header {
        margin-left: 5%;
        margin-right: 5%;
    }

    .header-brand {
        gap: 12px;
        padding: 12px;
    }

    .header-logo {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
    }

    .header-text h1 {
        font-size: 25px;
        overflow-wrap: anywhere;
    }

    .card-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 12px;
    }

    .card {
        padding: 16px;
    }

    .sensor-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 12px;
    }
}