html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#map {
    width: 100%;
    height: 100%;
}

#info {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    width: auto;
    min-width: 180px;
    max-width: calc(100% - 24px);
}

#info .title {
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
    display: flex;
    justify-content: center;
}

.plate-image {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}

#info .row {
    margin: 3px 0;
}

#status-value,
#speed-value,
#time-value,
#viewers-value {
    font-weight: 700;
}

#status-value.moving {
    color: #2d8a34;
}

#status-value.stopped {
    color: #7a5a00;
}

#status-value.parked {
    color: #2f5f9e;
}

#status-value.stale {
    color: #b05800;
}

#tracking-closed-banner {
    display: none;
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    background: rgba(18, 22, 28, 0.92);
    color: #e6edf3;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 12px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-width: min(820px, calc(100% - 24px));
}

#tracking-closed-banner h1,
#tracking-closed-banner h2,
#tracking-closed-banner h3 {
    margin: 0 0 10px;
    color: #f0f6fc;
}

#tracking-closed-banner p {
    margin: 0 0 10px;
    line-height: 1.45;
}

#tracking-closed-banner ul,
#tracking-closed-banner ol {
    margin: 8px 0 12px 22px;
}

#tracking-closed-banner a {
    color: #8ab4f8;
}

#admin-panel {
    margin-top: 8px;
    border-top: 1px solid #d8d8d8;
    padding-top: 8px;
}

#admin-state-value {
    font-weight: 700;
}

#toggle-tracking-btn,
#save-message-btn,
#use-default-message-btn {
    margin-top: 6px;
    width: 100%;
    padding: 7px 8px;
    border: none;
    border-radius: 8px;
    background: #2f5f9e;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

#toggle-tracking-btn:hover,
#save-message-btn:hover,
#use-default-message-btn:hover {
    background: #274f82;
}

#tracking-message-input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    min-height: 72px;
    resize: vertical;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    padding: 6px 7px;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
}

.follow-control {
    background: transparent;
    border: none;
    border-radius: 12px;
    box-shadow: none;
    padding: 0;
}

.follow-control button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.follow-control button.is-active {
    background: #f1da5b;
    color: #111111;
}

.follow-control button:hover {
    background: #f5f5f5;
}

.follow-control button.is-active:hover {
    background: #e7cf48;
}

@media (max-width: 640px) {
    #info {
        top: auto;
        bottom: 12px;
        left: 12px;
        right: 12px;
        min-width: 0;
        width: auto;
        font-size: 13px;
    }
}
