/* JFIT Habit Points Tracker Styles */


/* Habits List */
.habits-list {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .users-list{
        max-height: 464px;
        overflow: scroll;
        max-width: 280px;
        
    }
}

.habit-item {
    transition: all 0.3s ease;
    border-bottom: 1px solid #c6c6c6;
    padding: 10px 0;
}

.habit-item:hover {
    transform: translateY(-2px);
}

.habit-item.hover-effect {
    transform: translateY(-3px);
}

.habit-item.habit-selected {
    /* background-color: #e8f5e8;
    border-color: #4caf50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2); */
}



#content form label.habit-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;

}




#content form label span.habit-title {
    color: #000000;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Locked Habits */
.habit-locked {
    opacity: 0.7;
}

.habit-locked .habit-checkbox {
    cursor: not-allowed;
}

.habit-locked .habit-title {
    color: #000000;
}

#content form label span.habit-locked-label {
    display: inline-block;
    color: #000000;
    font-size: 12px;
    padding-left: 0;
    white-space: nowrap;
}

#content form .habit-input {
    top: 2px!important;
}



/* Actions Section */
.habit-tracker-actions {
    text-align: center;
    margin-bottom: 40px;
}

.jfit-save-habits {
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 17px;
    transition: all 0.3s ease;
}

.jfit-save-habits:hover {
    transform: translateY(-2px);
}

.jfit-save-habits:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.jfit-save-habits.no-habits-selected {
    cursor: not-allowed;
    opacity: 0.6;
}

.jfit-save-habits.loading {
    background: #6c757d;
    cursor: wait;
}

/* Messages */
.jfit-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.jfit-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.jfit-message.error {
    background-color: #f8d7da;
    color: #ff0019;
    border: 1px solid #f5c6cb;
}

/* Status Messages */
.jfit-status-message {
    padding: 20px 0;
    margin: 0;
    text-align: center;
}

.jfit-status-message p {
    margin: 0;
    color: #000000;
    font-weight: 600;
    font-size: 14px;
}

/* Leaderboard */
.jfit-users-leaderboard {
    margin-top: 40px;
}

.jfit-users-leaderboard h3 {
    margin-bottom: 25px;
    font-size: 1.5em;
}

.user-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #c6c6c6;
}

.user-item:hover {
    transform: translateX(5px);
}

.user-avatar {
    margin-right: 20px;
}

.user-avatar img {
    border-radius: 50%;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 400;
    color: #000000;
}

.user-stats {
    display: flex;
    align-items: center;
}

.user-points {
    font-size: 1.2em;
    font-weight: 700;
}

.no-users-message {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

/* Completion Streak */
.completion-streak {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 10px;
    margin: 20px 0;
    color: #856404;
    font-weight: 600;
    border-left: 5px solid #ffc107;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes success-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: success-animation 0.5s ease;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

