.tasks-container {
    display: none;
    position: fixed;
    top: 0; /* Adjust if you have a fixed navbar */
    left: 0;
    right: 0;
    bottom: 35px;
    z-index: 10;
    overflow: hidden; /* Prevent scrolling of the entire page */
}

.tasks-background {
    width: 95%;
    height: calc(100% - 60px); /* Adjust if you have a fixed navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 2.5%;
}

.tasks-card {
    background-color: var(--card-color);
    border-radius: 15px;
    width: 100%;
    height: 100%; /* Take full height */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow: hidden; /* Hide overflow */
    display: flex;
    flex-direction: column;
    font-family: Luckiest;
    color: #333;
    margin: 0 auto; /* Center the card */
}

.tasks-card>ul {
    width: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0 16px;

    overflow: scroll;
    padding-bottom: 50px;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tasks-card>ul::-webkit-scrollbar {
    display: none;
}

.tasks-card>ul>li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.tasks-card>ul>li p {
    text-align: left;
}

.tasks-card>ul>li span {
    font-size: 12px;
    margin-left: auto;
}

.tasks-card>ul>li>a {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: Luckiest;
    font-size: 1.4em;
    width: stretch;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.tasks-card>ul>li>a.disabled {
    background-color: var(--primary-color);
    pointer-events: none;
    cursor: not-allowed;
}

.tasks-banner {
    background-color: var(--secondary-color);
    padding: 12px;
    text-align: center;
    font-size: 1.8em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tasks-refresh-text {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    padding: 5px 0;
    font-family: Luckiest;
}

.emptyMessage,
.errorMessage {
    width: calc(100% - 40px);
    padding: 20px;
    text-align: center;
}

.errorMessage {
    color: var(--accent-color);
}

.categories-tabs {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 16px 20px 24px 20px;
    min-height: 83px;
    box-sizing: border-box;

    overflow-x: scroll;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: Luckiest;
    font-size: 1em;
    width: stretch;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    min-width: fit-content;
}

.category-tab-button:disabled {
    background-color: var(--primary-color);
    pointer-events: none;
    cursor: not-allowed;
}