* {
    user-select: none;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at top, #000010, #000);
    color: white;
    padding: 20px;
    user-zoom: fixed;
}

.title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #fff;
}

.tasks-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.task-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.button-group {
    display: flex;
    flex: 1;
    gap: 10px;
    min-width: 0;

    max-width: 265px;
    width: 100%;
}

.link-button {
    flex: 1;
    padding: 12px 12px;
    text-align: center;
    border: 2px solid rgba(0, 136, 204, 1);
    border-radius: 12px;
    background: linear-gradient(to bottom, rgba(0, 136, 204, 0.75), rgba(0, 100, 180, 0.75));
    color: white;
    font-size: 14px;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    white-space: normal;
    overflow: hidden;
    max-height: 14px;
}

.link-button:focus,
.check-button:focus {
    outline: none;
    box-shadow: none;
}

.check-button {
    background: linear-gradient(to bottom, rgba(180, 0, 255, 0.75), rgba(120, 0, 200, 0.75));
    border: 2px solid rgba(180, 0, 255, 1);
    border-radius: 12px;
    padding: 12px 20px;
    min-width: 48px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    position: relative;
    box-sizing: border-box;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;

    min-width: 70px;
}

.check-button img {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.check-success {
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.check-fail {
    background: linear-gradient(to bottom, rgba(255, 60, 60, 0.75), rgba(180, 0, 0, 0.75)) !important;
    border-color: rgba(255, 60, 60, 1) !important;
    transition: background 0.3s ease;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: #aaa;
    padding: 6px 10px;
    background-color: #000;
    border-top: 1px solid #111;
    z-index: 999;
}

.loading-spinner,
.global-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

.empty-state,
.no-sub-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #aaa;
    padding: 20px;
    margin-top: 80px;
}

.no-tasks-img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.no-tasks-text,
.no-sub-text {
    font-size: 16px;
    white-space: pre-line;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 20px;
}

.lottie-container {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
}

.button-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    width: 100%;
    max-width: 280px;
}

#startBotBtn, #checkSubBtn {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#startBotBtn {
    background-color: #ffffff;
    color: #007aff;
    border: 2px solid #007aff;
}

#checkSubBtn {
    background-color: #007aff;
    color: #ffffff;
    border: 2px solid #007aff;
}
