.glucoultra-container {
    width: 300px;
    height: 560px;
    background-color: #1e1e1e;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    padding: 20px;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    position: relative;
}

.glucoultra-display {
    width: 100%;
    height: 180px;
    background-color: #000000;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    letter-spacing: 2px;
}

#glucoultra-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #4caf50;
}
#glucoultra-mmoll {
    margin-bottom: 5px;
}
.glucoultra-mgdl-datetime {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}
#glucoultra-mgdl {
    margin-right: 10px;
}
#glucoultra-datetime {
    font-size: 12px;
    color: #ff5722;
}

.glucoultra-capture-area {
    width: 100%;
    height: 100px;
    background-color: #2e2e2e;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.glucoultra-capture-area video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.glucoultra-capture-area select#glucoultra-camera-select {
    width: 120px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.glucoultra-metric-select {
    margin: 10px 0;
    text-align: center;
}
.glucoultra-metric-select select {
    width: 100%;
    font-size: 14px;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background-color: #4caf50;
    color: #ffffff;
    cursor: pointer;
    margin-bottom: 10px;
}
.glucoultra-metric-select select option {
    background-color: #ffffff;
    color: #000000;
}

.glucoultra-button {
    width: 100%;
    padding: 15px;
    background-color: #4caf50;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.glucoultra-button:hover {
    background-color: #45a049;
}

.glucoultra-feedback {
    margin-top: 10px;
    font-size: 14px;
    color: #ff5722;
    text-align: center;
}

.glucoultra-calibration {
    margin-top: 20px;
    text-align: center;
}
.glucoultra-calibrate-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #2196f3;
}
input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.glucoultra-calibration input {
    width: 100%;
    padding: 0.5px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}
.glucoultra-calibration .glucoultra-button {
    background-color: #2196f3;
    padding: 0.5px;
    font-size: 14px;
}
.glucoultra-calibration .glucoultra-button:hover {
    background-color: #0b7dda;
}

/* Multi-metric calibration dropdown */
#glucoultra-calibration-select {
    width: 100%;
    font-size: 14px;
    padding: 6px;
    border-radius: 5px;
    border: none;
    background-color: #4caf50;
    color: #ffffff;
    cursor: pointer;
    margin-bottom: 10px;
}
#glucoultra-calibration-select option {
    background-color: #ffffff;
    color: #000000;
}
