* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #101810;
    background-image:
        linear-gradient(rgba(4, 12, 7, 0.38), rgba(4, 12, 7, 0.5)),
        url("minecraft.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    font-family: Arial, sans-serif;
}

.panel {
    width: 90%;
    max-width: 420px;
    padding: 35px;
    text-align: center;
    background: rgba(24, 78, 42, 0.95);
    border: 1px solid rgba(190, 235, 196, 0.3);
    border-radius: 16px;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.55),
        0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0);
    cursor: grab;
}

.panel.is-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

.panel button {
    cursor: pointer;
}

.icon {
    font-size: 48px;
}

h1 {
    margin-bottom: 8px;
}

.subtitle {
    color: #c2dfc8;
    margin-top: 0;
}

.status-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0 12px;
    font-size: 17px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #888;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

button {
    padding: 15px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s, background-color 0.2s;
}

button:hover:not(:disabled) {
    transform: scale(1.03);
    filter: brightness(1.15);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.refresh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 145px;
    margin: 0 auto 4px;
    padding: 9px 15px;
    border: 1px solid rgba(205, 239, 211, 0.3);
    border-radius: 7px;
    background: rgba(9, 48, 25, 0.65);
    color: #e0f0e3;
    font-size: 13px;
    font-weight: 600;
}

.refresh-button:hover:not(:disabled) {
    background: rgba(12, 58, 31, 0.9);
}

.start-button {
    background: #238636;
}

.stop-button {
    background: #da3633;
}

#message {
    margin-top: 25px;
    color: #c2dfc8;
    font-size: 14px;
}