* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {

    width: 100%;
    height: 100%;
    overflow: hidden;

    font-family:
        Inter,
        Segoe UI,
        sans-serif;

    background: #0f172a;
}

#map {

    width: 100%;
    height: 100vh;
}

.dashboard-panel {

    position: fixed;

    top: 20px;
    left: 20px;

    width: 340px;

    z-index: 9999;

    padding: 20px;

    border-radius: 20px;

    background:
        rgba(15, 23, 42, 0.92);

    backdrop-filter:
        blur(12px);

    color: white;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.35);
}

.header {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom: 20px;
}

.header h2 {

    font-size: 24px;

    margin-bottom: 4px;
}

#dashboardUsername {

    color: #94a3b8;

    font-size: 14px;
}

.status {

    background: #22c55e;

    color: white;

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 600;
}

.actions {

    display: flex;

    gap: 12px;
}

.actions button {

    flex: 1;

    border: none;

    cursor: pointer;

    padding: 12px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 600;

    transition: .2s;
}

#followMe {

    background: #2563eb;

    color: white;
}

#followMe:hover {

    transform: translateY(-1px);
}

#clearRoute {

    background: #dc2626;

    color: white;
}

#clearRoute:hover {

    transform: translateY(-1px);
}

.leaflet-popup-content {

    font-size: 14px;
}

.dashboard-panel {
    cursor: move;
}

.hidden {
    display: none !important;
}

.toast {
    position: fixed;
    top: 16px;
    right: 16px;

    width: min(92vw, 320px);
    padding: 12px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-radius: 12px;

    color: white;
    font-size: 14px;
    font-weight: 600;

    z-index: 10000;

    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, 0.28);

    animation: slideIn .25s ease;
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: #dc2626;
}

#toastMessage {
    flex: 1;
    word-break: break-word;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;

    color: white;

    font-size: 22px;
    font-weight: 700;

    cursor: pointer;

    width: auto;
    padding: 0;
}

@keyframes slideIn {

    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 600px) {

    .toast {
        top: 12px;
        left: 12px;
        right: 12px;
        width: auto;
    }
}