/* Fitness Lemon Frontend Styles */
.fitness-lemon-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.fl-workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.fl-workout-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.fl-workout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.fl-workout-image {
    height: 200px;
    overflow: hidden;
}

.fl-workout-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fl-workout-card:hover .fl-workout-image img {
    transform: scale(1.05);
}

.fl-workout-content {
    padding: 20px;
}

.fl-workout-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.3;
}

.fl-workout-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.fl-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    color: #718096;
    background: #f7fafc;
    padding: 4px 10px;
    border-radius: 20px;
}

.fl-meta-item i {
    margin-right: 5px;
}

.fl-workout-description {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fl-workout-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.fl-participants {
    font-size: 0.9em;
    color: #718096;
}

.fl-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.fl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #68d391);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.fl-workout-actions {
    display: flex;
    gap: 10px;
}

.fl-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fl-button-primary {
    background: #6B46C1;
    color: white;
}

.fl-button-primary:hover {
    background: #553C9A;
}

.fl-button-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.fl-button-danger {
    background: #f56565;
    color: white;
}

.fl-button-danger:hover {
    background: #e53e3e;
}

.fl-user-bookings {
    margin-top: 30px;
}

.fl-booking-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.fl-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.fl-remaining-workouts {
    font-weight: bold;
    color: #48bb78;
}

/* Loading spinner */
.fl-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6B46C1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.fl-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.fl-empty-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Filters */
.fl-filters {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.fl-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.fl-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}

.fl-filter-select,
.fl-filter-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9em;
}

.fl-filter-button {
    background: #6B46C1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.fl-filter-button:hover {
    background: #553C9A;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fitness-lemon-container {
        padding: 15px;
    }
    
    .fl-workout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fl-workout-stats {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .fl-workout-actions {
        flex-direction: column;
    }
    
    .fl-booking-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .fl-booking-actions {
        justify-content: flex-start;
    }
    
    .fl-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* Notifications */
.fl-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fl-notification.show {
    transform: translateX(0);
}

.fl-notification.success {
    background: #48bb78;
}

.fl-notification.error {
    background: #f56565;
}

.fl-notification.warning {
    background: #ed8936;
}