* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #408D4B;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.dashboard-container {
    display: block;
    width: 90%;
    max-width: 1200px;
    text-align: center;
}

.dashboard-container h1 {
    color: white;
    margin-bottom: 30px;
}

.unit {
    background: white;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.sensor {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.logout {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: white;
    color: #ff5974;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* Gauge Styling */

.gauge {
    text-align: center;
}

.label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    background: conic-gradient(#4e73df 0%, #e6e6e6 0%);
    position: relative;
}

.circle::before {
    content: "";
    width: 85px;
    height: 85px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.value {
    position: relative;
    font-weight: bold;
    font-size: 16px;
}

/* Humidity Bar Styling */

/* Vertical Humidity Bars */

.humidity {
    text-align: center;
}

.vertical-bar {
    width: 60px;
    height: 120px;
    background-color: #e6e6e6;
    border-radius: 8px;
    margin: 10px auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.vertical-fill {
    width: 100%;
    height: 0%;
    background-color: #4e73df;
    transition: height 0.5s ease;
}

.humidity-value {
    font-size: 14px;
    font-weight: bold;
}

#deviceSelector {
    display: block;
    margin: 15px auto 20px auto;
    padding: 8px 12px;
    font-size: 16px;
}

.image-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#unitPhoto {
    max-width: 600px;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.dashboard-container,
.image-container,
#unit-photo-container {
    max-width: 100%;
}

.dashboard-container,
#unit-photo-container {
    min-width: 0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #408D4B;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.dashboard-container {
    display: block;
    width: 90%;
    max-width: 1200px;
    text-align: center;
}

.dashboard-container h1 {
    color: white;
    margin-bottom: 30px;
}

.unit {
    background: white;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.sensor {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.logout {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: white;
    color: #ff5974;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* Gauge Styling */

.gauge {
    text-align: center;
}

.label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    background: conic-gradient(#4e73df 0%, #e6e6e6 0%);
    position: relative;
}

.circle::before {
    content: "";
    width: 85px;
    height: 85px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.value {
    position: relative;
    font-weight: bold;
    font-size: 16px;
}

/* Humidity Bar Styling */

/* Vertical Humidity Bars */

.humidity {
    text-align: center;
}

.vertical-bar {
    width: 60px;
    height: 120px;
    background-color: #e6e6e6;
    border-radius: 8px;
    margin: 10px auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.vertical-fill {
    width: 100%;
    height: 0%;
    background-color: #4e73df;
    transition: height 0.5s ease;
}

.humidity-value {
    font-size: 14px;
    font-weight: bold;
}

#deviceSelector {
    display: block;
    margin: 15px auto 20px auto;
    padding: 8px 12px;
    font-size: 16px;
}

.image-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#unitPhoto {
    max-width: 600px;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
