﻿/* Tasks page cards — app uses global dark theme from main.css */
#panel_tasks {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    font-family: "Onest", sans-serif;
}

.tasks-page-title {
    margin: 8px 0 18px;
    padding: 0 2px;
    font-family: "Onest", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

#tasksList {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    overflow-y: auto;
    padding-bottom: 140px;
    box-sizing: border-box;
    scrollbar-width: none;
}

#tasksList::-webkit-scrollbar {
    display: none;
}

#panel_tasks .Task {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    margin-bottom: 0;
    background: var(--card, rgba(28, 28, 30, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

#panel_tasks .Task:active {
    transform: scale(0.985);
}

#panel_tasks .taskIcon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
}

#panel_tasks .taskIcon svg {
    width: 24px;
    height: 24px;
}

#panel_tasks .taskIcon path {
    fill: rgba(255, 255, 255, 0.75);
}

#panel_tasks .TaskInfo {
    flex: 1;
    min-width: 0;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

#panel_tasks .TaskTitle {
    font-family: "Onest", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

#panel_tasks .TaskDescription {
    font-family: "Onest", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#panel_tasks .TaskDescription .task-channel {
    color: var(--accent, #E3AD31);
}

#panel_tasks .TaskReward {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

#panel_tasks .TaskRewardValue {
    font-family: "Onest", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

#panel_tasks .TaskReward .star_asset {
    width: 14px;
    height: 14px;
}

#panel_tasks .TaskExecuteSettings {
    display: none;
}

.tasks-empty {
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-family: "Onest", sans-serif;
    font-size: 16px;
}

#panel_tasks .Task.checkButton {
    outline: 1px solid rgba(227, 173, 49, 0.35);
}

#panel_tasks .Task.checkButton .TaskTitle::after {
    content: " · ✓";
    color: var(--accent, #E3AD31);
    font-size: 14px;
}
