/* Qlassy Daily Challenges Widget Styles */
.qa-qlassy-challenge-target svg, .qa-qlassy-challenge-time svg {
    width: 16px;
    height: 16px;
}
.qa-qlassy-challenge-target, .qa-qlassy-challenge-time {
    display: flex;
    align-items: center;
    gap: 5px;
}
.swiper-button-next, .swiper-button-prev {
    width: 32px;
    height: 32px;
    background: rgb(255 255 255 / 0%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    position: absolute;
    top: 70%;
    transform: translateY(-50%);
    z-index: 10;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 12px;
    font-weight: bold;
    color: #121212;
}
.qa-qlassy-challenges-widget {
    padding-bottom: 15px;
}
.ActiveChallenges, .AcailableChallenges {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 17px !important;
    line-height: 30px;
}
.qa-qlassy-challenges-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background: #f5f5f5;
}
.qa-qlassy-challenges-list::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.qa-qlassy-challenges-list::-webkit-scrollbar-track {
    background: #f9f9f9;
    -webkit-box-shadow: none;
}
.qa-qlassy-challenges-active,
.qa-qlassy-challenges-available {
    margin-bottom: 0px;
}
.qa-qlassy-challenge-item {
    background: #fff;
    border: 1px solid #dee0e1;
    border-radius: 4px;
    padding: 12px;
    transition: all 0.3s ease;
}

.qa-qlassy-challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.qa-qlassy-challenge-title {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}
.qa-qlassy-challenge-reward {
    background: #adcfff;
    color: #000000;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    line-height: 12px;
}

.qa-qlassy-challenge-description {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.4;
}

.qa-qlassy-challenge-details {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 10px;
}

.qa-qlassy-challenge-target,
.qa-qlassy-challenge-time {
    flex: 1;
}

/* Progress Bar */
.qa-qlassy-challenge-progress {
    margin-bottom: 8px;
}

.qa-qlassy-challenge-progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}

.qa-qlassy-challenge-progress-fill {
    background: linear-gradient(90deg, #018383, #00a8a8);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.qa-qlassy-challenge-progress-text {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
}

/* Timer */
.qa-qlassy-challenge-timer {
    font-size: 11px;
    color: #dc3545;
    margin-bottom: 8px;
    text-align: center;
}

.qa-qlassy-challenge-time-remaining {
    font-weight: 600;
}

/* Status */
.qa-qlassy-challenge-status {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.qa-qlassy-challenge-status.qa-qlassy-challenge-active {
    background: #d1ecf1;
    color: #0c5460;
}

.qa-qlassy-challenge-status.qa-qlassy-challenge-completed {
    background: #d4edda;
    color: #155724;
}

/* Actions */
.qa-qlassy-challenge-actions {
    text-align: center;
}
.qa-qlassy-challenge-start-btn {
    transition: all 0.3s ease;
    width: 100%;
    padding: 3px 16px;
    font-size: 10px;
    color: #018383;
    background: #edf6f6;
    border-radius: 100px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #018383;
    line-height: 16px;
}

.qa-qlassy-challenge-start-btn:hover {
    background: #016666;
    transform: translateY(-1px);
    color: #fff;
}

.qa-qlassy-challenge-start-btn:active {
    transform: translateY(0);
}
.qa-qlassy-challenge-start-btn:disabled {
    background: #018383;
    cursor: not-allowed;
    transform: none;
    color: #fff;
}

/* Empty State */
.qa-qlassy-challenges-empty {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 13px;
}

/* Admin Styles */
.qa-qlassy-challenges-list {
    max-height: 400px;
    overflow-y: auto;
}

.qa-qlassy-challenge-item.active {
    border-left: 4px solid #28a745;
}

.qa-qlassy-challenge-item.inactive {
    border-left: 4px solid #dc3545;
    opacity: 0.7;
}

.qa-qlassy-edit-btn,
.qa-qlassy-delete-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    margin: 0 2px;
}

.qa-qlassy-edit-btn:hover {
    background: #5a6268;
}

.qa-qlassy-delete-btn {
    background: #dc3545;
}

.qa-qlassy-delete-btn:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qa-qlassy-challenges-widget {
        padding: 10px;
    }

    .qa-qlassy-challenge-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .qa-qlassy-challenge-details {
        flex-direction: column;
        gap: 4px;
    }

    .qa-qlassy-challenge-target,
    .qa-qlassy-challenge-time {
        flex: none;
    }
}

/* Animation for challenge completion */
@keyframes challenge-complete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        background: #d4edda;
    }
    100% {
        transform: scale(1);
    }
}

.qa-qlassy-challenge-completed {
    animation: challenge-complete 0.6s ease-in-out;
}

/* Loading state */
.qa-qlassy-challenge-loading {
    opacity: 0.6;
    pointer-events: none;
}

.qa-qlassy-challenge-loading .qa-qlassy-challenge-start-btn {
    background: #6c757d;
    cursor: not-allowed;
}
