html,

body {

    margin: 0;
    padding: 0;
    min-height: 100dvh;
    overflow: hidden;
    background: #0b0d12;
    color: white;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        sans-serif;

}

.tesla-card {

    box-sizing: border-box;
    min-height: 100dvh;
    padding:
        calc(env(safe-area-inset-top) + 12px) 20px calc(env(safe-area-inset-bottom) + 12px);
    display: flex;
    flex-direction: column;
    gap: 18px;

}

.machine-container,
#machineContainer {
    display: flex;
    justify-content: center;
}

/* ---------------- Header ---------------- */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 8px;
}

.title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 600;
}

.subtitle {
    color: #9ca3af;
    font-size: 14px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 6px #22c55e,
        0 0 12px #22c55e;
}

.temp {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 600;
}

/* ---------------- Machine ---------------- */

.machine-svg {

    width: min(70vw, 220px);

    height: auto;

    display: block;

}

/* ---------------- Bin ---------------- */

.bin-label {
    color: #9ca3af;
    font-size: 16px;
}

.bin-value {
    font-size: 56px;
    line-height: 1;
    font-weight: 700;
}

.progress {
    height: 12px;

    border-radius: 999px;

    background: #1f2937;

    overflow: hidden;
}

.progress-fill {
    width: 87%;
    height: 100%;

    background:
        linear-gradient(90deg,
            #38bdf8,
            #60a5fa);
}

/* ---------------- Metrics ---------------- */

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.metric {
    background: #161a23;

    border-radius: 18px;

    padding: 14px;

    text-align: center;
}

.metric-title {
    color: #9ca3af;
    font-size: 13px;
}

.metric-value {
    font-size: 20px;
    font-weight: 600;
}

.component-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.status-pill {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-pill.on {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.status-pill.off {
    background: #4b5563;
}

.components {
    display: flex;
    justify-content: space-around;
}

.component {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.component-icon {
    font-size: 20px;
}

.component-name {
    font-size: 11px;
    color: #9ca3af;
}

.status-pill {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-pill.on {
    background: #22c55e;
    box-shadow:
        0 0 8px #22c55e;
}

.status-pill.off {
    background: #4b5563;
}

/* ---------------- Notifications ---------------- */

.notification-card {
    background: #161a23;

    border-radius: 18px;

    padding: 16px 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification-icon {
    font-size: 22px;
}

.notification-title {
    font-weight: 600;
}

.notification-subtitle {
    color: #9ca3af;
    font-size: 13px;
}

.notification-status {
    color: #22c55e;
    font-size: 22px;
    font-weight: 600;
}