   .content {
        background-color: rgb(212, 222, 231);

    }

    .grid-container {
        padding: 0%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }


.autoDebugTable {
    border-collapse: collapse;
    width: 100%;
}

.autoDebugTable th,
.autoDebugTable td {
    border: 1px solid black;
    padding: 5px;
    text-align: center;
}

/*
@media (max-width: 791px) {
  .grid-container {
        padding: 0%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
  }
}
@media (min-width: 792px) {
  .grid-container {
  display: grid;
  grid-auto-rows: 300px;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, 320px);
  justify-content: start; /* ensures no stretching */
  }
}
*/


.cardLast {
    order: 9999; /* any number larger than other items' order */
}

    #gauges {
        max-width: 980px;
    }

    .cardText {
        min-width: 120px;
    }

    .grid-item {
        background-color: rgb(252, 249, 249);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.3 ease;
    }

    .cardTextSOC {
        font-weight: bold;
        font-size: larger;
        font-family: 'Staatliches', sans-serif;
    }

    .cardTextSOCFlex {
        display: flex;
        margin-left: 0rem;
        flex-direction: column;
        align-self: baseline;
        align-items: baseline;
        gap: 0.5rem;
	width:100%;
    }

    /* Different heights to mimic the image */
    .item-1 {
        flex: 1 1 calc(20% - 10px);
        height: 100px;
    }

    .item-2 {
        flex: 1 1 calc(40% - 10px);
        height: 150px;
    }

    .item-3 {
        flex: 1 1 calc(30% - 10px);
        height: 120px;
    }

    .item-4 {
        flex: 1 1 calc(20% - 10px);
        height: 90px;
    }

    .item-5 {
        flex: 1 1 calc(30% - 10px);
        height: 130px;
    }

    .item-6 {
        flex: 1 1 calc(20% - 10px);
        height: 100px;
    }

    .item-7 {
        flex: 1 1 calc(60% - 10px);
        height: 250px;
    }

    .item-8 {
        flex: 1 1 calc(100% - 10px);
        height: 300px;
    }

    @media (max-width: 768px) {
        .grid-item {
            flex: 1 1 calc(50% - 10px);
        }
    }

    @media (max-width: 480px) {
        .grid-item {
            flex: 1 1 100%;
        }
    }

    .gauge-container {
        position: relative;
        width: 100%;
        height: 140px;
        margin-top: -10px;
    }

    .gaugeCanvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .dot {
        position: absolute;
        width: 28px;
        height: 28px;
        background-color: white;
        border: 4px solid green;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    .temperature-text {
        position: relative;
        top: 75px;
        font-size: 2.5rem;
        font-weight: bold;
    }

    .status {
        font-size: 1rem;
        font-weight: bold;
        color: #28a745;
    }

    .last-update {
        font-size: 0.9rem;
        color: gray;
    }

    .indicator-line {
        position: absolute;
        width: 3px;
        background-color: green;
        transform-origin: bottom center;
    }

    .legend-battery {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .dot-battery {
        height: 10px;
        width: 10px;
        border-radius: 50%;
        display: inline-block;
    }

    .chart-container-battery {
        position: relative;
        display: inline-block;
    }

    .chart-container-power {
        position: relative;
        display: inline-block;
        width: 100%;
        height: 100%;
    }

    .chart-container-powtterQQQQQQQQ {
        width: 800px;
        height: 400px;
    }

    .chart-center-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-45%, -45%);
        font-size: 42px;
        font-weight: bold;
        color: #333;
    }

    .chart-center-text-small {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-45%, 90%);
        font-size: 15px;
        font-weight: bold;
        color: #333;
    }

    .card {
        text-align: center;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        background: white;
        width: 320px;
        position: relative;
    }

    .tripleCardWidth {
        width: 960px;
    }

    .card {
        max-width: 1750px;
        margin: auto;
        text-align: center;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        position: relative;
    }


    .cardSize {
        width: 320px;
        height: 300px;
    }
    .cardSizeW {
        width: 320px;
    }


    @media (max-width: 520px) {
    	.cardSize {
      	  width: 100%;
      	  height: 300px;
  	}
    }


.time-selector {
    margin-left: auto;
    right: 3%;
    position: relative;
}

/* Common */
.time-list {
    display: flex;
    align-items: center;
    background: #f8f8ff;
    padding: 5px 10px;
    border-radius: 15px;
    gap: 10px;
}
.time-selected {
    display: none;
}

.card .last-update {
    font-size: clamp(0.8rem, 2vw, 0.9rem); /* min 0.7rem, max 0.9rem, scales with viewport */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 30px;
}



/* Mobile dropdown */
@media (max-width: 600px) {
    .time-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 5px;
        z-index: 1000;
    }
    .time-selected {
        display: block;
        width: 100%;
        background: #f8f8ff;
        padding: 10px;
        border-radius: 15px;
        border: none;
        text-align: left;
    }
    .time-selector.open .time-list {
        display: flex;
    }
    .time-list .time-option {
        padding: 8px;
        border: none;
        background: none;
        text-align: left;
    }
}


    @media (max-width: 500px) {
        .chart-container-power {
           
        }
    }

    .time-option {
        padding: 8px 16px;
        border-radius: 15px;
        cursor: pointer;
        font-weight: 500;
        color: #888;
        background: transparent;
        border: none;
    }

    .time-option.active {
        background: #1a1732;
        color: white;
    }

    .text-secondary {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
    }

    .mb-3 {
        font-family: 'Staatliches', sans-serif;
        font-weight: 500;

    }

    .weather-icon-inner {
        font-size: 4rem;
        /* Bigger = larger icon */
        display: block;
    }

    .weather-icon {
        margin: 15px;
    }