/* Workout Plan Summary Styles */
.plan-summary {
    margin-top: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.summary-item {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.summary-item h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.focus-areas {
    margin-bottom: 20px;
}

.focus-areas h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.body-parts-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.body-part-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

.plan-notes {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.plan-notes h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-notes p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.plan-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.plan-actions button {
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Philosophy Section Styles */
.plan-philosophy {
    margin: 24px 0;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.plan-philosophy h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.philosophy-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.philosophy-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.philosophy-item h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.philosophy-item p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Active Plan Styles */
.plan-item.active-plan {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.active-indicator {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.plan-badge.active-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 600;
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.plan-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.plan-item .plan-info {
    flex: 1;
}

.plan-item .plan-info h5 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
}

.plan-item .plan-info p {
    margin: 0 0 8px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.plan-item .plan-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.delete-plan-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-plan-btn:hover {
    background: #c53030;
}

.set-active-btn {
    background: var(--primary-color, #6366f1);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.set-active-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.unset-active-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unset-active-btn:hover {
    background: #c53030;
    transform: translateY(-1px);
}

.plan-header-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Active Plan Dashboard Widget */
.active-plan-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a67d8 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.active-plan-widget h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.active-plan-widget p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.active-plan-widget .plan-quick-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.875rem;
}

.active-plan-widget .plan-quick-stats span {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
}

.no-active-plan-widget {
    background: #f8fafc;
    border: 2px dashed #cbd5e0;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: var(--text-muted);
}

.no-active-plan-widget p {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
}

.no-active-plan-widget button {
    font-size: 0.875rem;
    padding: 8px 16px;
}

/* Responsive design */
/* Plan Creation Styles */
.create-plan-options {
    text-align: center;
}

.plan-creation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.creation-option {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.creation-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.creation-option .option-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
}

.creation-option .option-icon svg {
    width: 24px;
    height: 24px;
}

.creation-option h5 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.creation-option p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.file-upload-area .upload-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
}

.file-upload-area .upload-icon svg {
    width: 32px;
    height: 32px;
}

.file-upload-area h5 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.file-upload-area p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.import-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-actions {
        justify-content: stretch;
    }
    
    .plan-actions button {
        flex: 1;
        min-width: 0;
    }
    
    .plan-item .plan-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .set-active-btn,
    .unset-active-btn {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .plan-creation-grid {
        grid-template-columns: 1fr;
    }
}